]> git.sur5r.net Git - minitube/commitdiff
Fix window positioning in Carbon and Cocoa
authorFlavio <flavio@odisseo.local>
Thu, 3 Mar 2011 13:48:12 +0000 (14:48 +0100)
committerFlavio <flavio@odisseo.local>
Thu, 3 Mar 2011 13:48:12 +0000 (14:48 +0100)
src/MainWindow.cpp

index aa45d4fbc56c4a07cf4f5b420ff17b06d983d5ce..b80cbea729c9efe664e16ba477d917c899d8aed2 100644 (file)
@@ -474,7 +474,11 @@ void MainWindow::readSettings() {
     restoreGeometry(settings.value("geometry").toByteArray());
 #ifdef APP_MAC
     if (!isMaximized())
+#ifdef QT_MAC_USE_COCOA
+        move(x(), y() + 10);
+#else
         move(x(), y() + mainToolBar->height() + 8);
+#endif
 #endif
     setDefinitionMode(settings.value("definition", VideoDefinition::getDefinitionNames().first()).toString());
     audioOutput->setVolume(settings.value("volume", 1).toDouble());