Added missing #ifdef to fix non-Maemo compilation
[qcpufreq] / 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);