Added missing #ifdef to fix non-Maemo compilation
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 11:55:51 +0000 (12:55 +0100)
committerDaniel Klaffenbach <danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 11:55:51 +0000 (12:55 +0100)
src/mainwindow.cpp

index 0b42260..b513ca8 100644 (file)
@@ -159,7 +159,9 @@ void MainWindow::adjustFreq()
 
     if (settings->useConfirmation()) {
         QMessageBox box;
-        box.setAttribute(Qt::WA_Maemo5AutoOrientation, settings->useAutoRotate());
+        #if defined(Q_WS_MAEMO_5)
+            box.setAttribute(Qt::WA_Maemo5AutoOrientation, settings->useAutoRotate());
+        #endif
         box.setStandardButtons(QMessageBox::Apply | QMessageBox::Cancel);
         box.setDefaultButton(QMessageBox::Apply);
         box.setIcon(QMessageBox::Question);