Commit e55573ff authored by Michael Pyne's avatar Michael Pyne

juk: Fix window always appearing from restored session.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=1231935
parent ad008818
......@@ -87,16 +87,14 @@ int main(int argc, char *argv[])
// Create the main window and such
if(a.isSessionRestored()) {
kRestoreMainWindows<JuK>();
}
else {
JuK *juk = new JuK;
if(a.isSessionRestored() && KMainWindow::canBeRestored(1))
juk->restore(1, false /* don't show */);
KConfigGroup config(KGlobal::config(), "Settings");
if(!config.readEntry("StartDocked", false))
juk->show();
}
return a.exec();
}
......
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