Work-around issue of non display of main window when using transparent QtCurve theme.

This commit is contained in:
craig.p.drummond
2012-12-31 11:42:08 +00:00
committed by craig.p.drummond
parent 610eab1309
commit e5d48bf7c1
2 changed files with 8 additions and 0 deletions

View File

@@ -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
-----

View File

@@ -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);
}
}