|
|
@ -263,14 +263,8 @@ MainWindow::MainWindow(QWidget *parent, const QStringList& torrentCmdLine) : QMa |
|
|
|
// Load Window state and sizes
|
|
|
|
// Load Window state and sizes
|
|
|
|
readSettings(); |
|
|
|
readSettings(); |
|
|
|
|
|
|
|
|
|
|
|
if (!ui_locked) { |
|
|
|
if (systrayIcon) { |
|
|
|
if (pref.startMinimized() && systrayIcon) { |
|
|
|
if (!(pref.startMinimized() || ui_locked)) { |
|
|
|
show(); |
|
|
|
|
|
|
|
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(); |
|
|
@ -323,11 +317,15 @@ MainWindow::MainWindow(QWidget *parent, const QStringList& torrentCmdLine) : QMa |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// Make sure the Window is visible if we don't have a tray icon
|
|
|
|
// Make sure the Window is visible if we don't have a tray icon
|
|
|
|
if (!systrayIcon && isHidden()) { |
|
|
|
if (!systrayIcon) { |
|
|
|
|
|
|
|
if (pref.startMinimized()) { |
|
|
|
|
|
|
|
showMinimized(); |
|
|
|
|
|
|
|
} else { |
|
|
|
show(); |
|
|
|
show(); |
|
|
|
activateWindow(); |
|
|
|
activateWindow(); |
|
|
|
raise(); |
|
|
|
raise(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::deleteBTSession() { |
|
|
|
void MainWindow::deleteBTSession() { |
|
|
|