BUGFIX: Avoid main window flashing on startup (closes #703984)

This commit is contained in:
Christophe Dumez
2011-01-17 17:31:59 +00:00
parent 0aae5f947d
commit 10020ed520
3 changed files with 7 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
- BUGFIX: Added unicode support to email notification
- BUGFIX: Improved compatibility with various SMTP servers
- BUGFIX: Fix Labeling in RSS downloader
- BUGFIX: Avoid main window flashing on startup (closes #703984)
* Sat Jan 15 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.3
- BUGFIX: Fix possible crashes in full allocation mode

View File

@@ -302,8 +302,6 @@ int main(int argc, char *argv[]){
#ifndef DISABLE_GUI
MainWindow window(0, torrentCmdLine);
if(!no_splash)
window.raise();
QObject::connect(&app, SIGNAL(messageReceived(const QString&)),
&window, SLOT(processParams(const QString&)));
app.setActivationWindow(&window);

View File

@@ -233,8 +233,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
if(!autoShutdownGroup->checkedAction())
actionAutoShutdown_Disabled->setChecked(true);
show();
// Load Window state and sizes
readSettings();
properties->readSettings();
@@ -242,13 +240,14 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
// Limit status filters list height
transferListFilters->getStatusFilters()->updateHeight();
if(ui_locked) {
hide();
} else {
if(!ui_locked) {
if(pref.startMinimized())
showMinimized();
else
setFocus();
else {
show();
activateWindow();
raise();
}
}
// Start watching the executable for updates