diff --git a/ChangeLog b/ChangeLog index ec1204bf9..99910ad3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -50,6 +50,8 @@ 4. Simplified Chinese translation - thanks to 薛景 5. Fix restoring of splitter sizes when we start minimized to system tray. 6. Fix decoding of Cantata HTTP stream URLs. +7. Work-around issue of non display of main window when using transparent + QtCurve theme. 0.9.1 ----- diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 6bf009216..22e54c3f7 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -252,6 +252,8 @@ MainWindow::MainWindow(QWidget *parent) , phononStream(0) #endif { + QPoint p=pos(); + ActionCollection::setMainWidget(this); trayItem=new TrayItem(this); @@ -837,6 +839,10 @@ MainWindow::MainWindow(QWidget *parent) if (Settings::self()->startHidden()) { setVisible(false); setAttribute(Qt::WA_DontShowOnScreen, false); + } else if (testAttribute(Qt::WA_TranslucentBackground)) { + // Work-around non-showing main window on start-up with transparent QtCurve windows. + // BUG: 146 + move(p.isNull() ? QPoint(0, 0) : p); } }