mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-15 09:29:36 +02:00
cleanup
This commit is contained in:
+7
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user