From d5669b15e5943eb1be12dfc86c9fe898234dfa04 Mon Sep 17 00:00:00 2001 From: Daniel Klaffenbach Date: Mon, 27 Dec 2010 12:55:51 +0100 Subject: [PATCH] Added missing #ifdef to fix non-Maemo compilation --- src/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0b42260..b513ca8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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); -- 1.7.9.5