Work-around issue of non display of main window when using transparent QtCurve theme.
This commit is contained in:
committed by
craig.p.drummond
parent
610eab1309
commit
e5d48bf7c1
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user