Fix issue when "minimize to systray" and "start minimized" are both enabled.

Window could not be restored.
This commit is contained in:
Christophe Dumez 2012-07-02 20:56:27 +03:00
commit cfd2576002

View file

@ -255,9 +255,13 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
readSettings(); readSettings();
if(!ui_locked) { if(!ui_locked) {
if(pref.startMinimized() && systrayIcon) if(pref.startMinimized() && systrayIcon) {
showMinimized(); show();
else { minimizeWindow();
// XXX: Using showMinimized() makes it impossible to restore
// the window if "Minimize to systray" is enabled.
//showMinimized();
} else {
show(); show();
activateWindow(); activateWindow();
raise(); raise();