Skip to content

Commit

Permalink
onety-three's patch for session restore bug.
Browse files Browse the repository at this point in the history
Thanks, Frank!
  • Loading branch information
Dr. Robert Marmorstein committed Mar 4, 2010
1 parent eea36ad commit eb583ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ int main(int argc, char *argv[])
if (KCmdLineArgs::parsedArgs() && KCmdLineArgs::parsedArgs()->isSet("start-hidden"))
;
// When the application is restored by KDE session, restore its state:
else if (app.isSessionRestored())
win->setShown(!Settings::startDocked());
else if (app.isSessionRestored()){
if (!Settings::startDocked())
win->show();
}
// Else, the application has been launched explicitely by the user (KMenu, keyboard shortcut...), so he need it, we show it:
else
win->show();
Expand Down

0 comments on commit eb583ec

Please sign in to comment.