Fl_Preferences::getUserdataPath() didn't work for sub-groups (STR
#872) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
461d60a0f3
commit
74d3204304
2
CHANGES
2
CHANGES
@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7
|
||||
|
||||
- Documentation fixes (STR #648, STR #692, STR #730, STR
|
||||
#744, STR #745)
|
||||
- Fl_Preferences::getUserdataPath() didn't work for
|
||||
sub-groups (STR #872)
|
||||
- Fixed some redraw issues on Windows XP.
|
||||
- FLUID didn't set the initial size of widgets properly
|
||||
(STR #850)
|
||||
|
||||
@ -117,6 +117,7 @@ private:
|
||||
Node *search( const char *path, int offset=0 );
|
||||
Node *addChild( const char *path );
|
||||
void setParent( Node *parent );
|
||||
Node *parent() { return parent_; }
|
||||
char remove();
|
||||
char dirty();
|
||||
// entry methods
|
||||
|
||||
@ -87,7 +87,7 @@ Fl_Preferences::Fl_Preferences( const char *path, const char *vendor, const char
|
||||
*/
|
||||
Fl_Preferences::Fl_Preferences( Fl_Preferences &parent, const char *key )
|
||||
{
|
||||
rootNode = 0;
|
||||
rootNode = parent.rootNode;
|
||||
node = parent.node->addChild( key );
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ Fl_Preferences::Fl_Preferences( Fl_Preferences &parent, const char *key )
|
||||
*/
|
||||
Fl_Preferences::Fl_Preferences( Fl_Preferences *parent, const char *key )
|
||||
{
|
||||
rootNode = 0;
|
||||
rootNode = parent->rootNode;
|
||||
node = parent->node->addChild( key );
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ Fl_Preferences::Fl_Preferences( Fl_Preferences *parent, const char *key )
|
||||
*/
|
||||
Fl_Preferences::~Fl_Preferences()
|
||||
{
|
||||
delete rootNode;
|
||||
if (!node->parent()) delete rootNode;
|
||||
// DO NOT delete nodes! The root node will do that after writing the preferences
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user