Commit d65a518b authored by Laurent Montel's avatar Laurent Montel 😁

Fix return value

parent 00f388b0
......@@ -48,5 +48,6 @@ int main( int argc, char **argv )
KGlobal::locale()->insertCatalog( QLatin1String("libpimcommon") );
SieveEditorMainWindow *mw = new SieveEditorMainWindow();
mw->show();
a.exec();
int val = a.exec();
return val;
}
......@@ -45,7 +45,7 @@ SieveEditorMainWindow::SieveEditorMainWindow()
: KXmlGuiWindow(),
mNetworkIsDown(false)
{
mMainWidget = new SieveEditorCentralWidget;
mMainWidget = new SieveEditorCentralWidget(this);
connect(mMainWidget, SIGNAL(configureClicked()), SLOT(slotConfigure()));
connect(mMainWidget->sieveEditorMainWidget(), SIGNAL(updateButtons(bool,bool,bool,bool)), this, SLOT(slotUpdateButtons(bool,bool,bool,bool)));
setCentralWidget(mMainWidget);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment