Browse Source

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

Window could not be restored.
adaptive-webui-19844
Christophe Dumez 12 years ago
parent
commit
c5841146ff
  1. 10
      src/mainwindow.cpp

10
src/mainwindow.cpp

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

Loading…
Cancel
Save