This commit is contained in:
SVN User
2008-07-19 23:28:29 +00:00
parent aa4d7bbe74
commit 1d6706b3d4
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
#define BUILD_NUM 394
#define BUILD_NUM 395
+7 -6
View File
@@ -704,7 +704,7 @@ int main( int argc, char *argv[] )
mw->show();
app->connect( app, SIGNAL( lastWindowClosed() ), app, SLOT( quit() ) );
app->connect(app, SIGNAL( lastWindowClosed() ), app, SLOT( quit()));
// setup single shot timer to call loadEverything()
@@ -720,18 +720,19 @@ int main( int argc, char *argv[] )
{
/* save the state of the GUI (opened firewall, opened object tree page, etc */
FWObject *o=mw->getVisibleFirewalls();
if (fwbdebug)
qDebug("Main: closing. VisibleFirewall = %p",o);
if (fwbdebug) qDebug("Main: closing. VisibleFirewall = %p",o);
if (o) st->setStr("UI/visibleFirewall",
FWObjectDatabase::getStringId(o->getId()).c_str());
FWObjectDatabase::getStringId(
o->getId()).c_str());
o=mw->getOpened();
if (o) st->setStr("UI/visibleObject",
FWObjectDatabase::getStringId(o->getId()).c_str());
FWObjectDatabase::getStringId(
o->getId()).c_str());
}
st->save();
delete st;
}