Fix designer build with QT_NO_CLIPBOARD.
authorJanne Anttila <janne.anttila@digia.com>
Tue, 19 Jun 2012 05:50:10 +0000 (08:50 +0300)
committerQt by Nokia <qt-info@nokia.com>
Tue, 19 Jun 2012 08:35:22 +0000 (10:35 +0200)
The required variable was inside incorrect scope.

Change-Id: I4e6c7378ab3a2f44143640de67d7765eeb4d7030
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
src/designer/src/lib/shared/actioneditor.cpp

index df6b803..e20d121 100644 (file)
@@ -332,8 +332,8 @@ void ActionEditor::setFormWindow(QDesignerFormWindowInterface *formWindow)
 
 void  ActionEditor::slotSelectionChanged(const QItemSelection& selected, const QItemSelection& /*deselected*/)
 {
-#ifndef QT_NO_CLIPBOARD
     const bool hasSelection = !selected.indexes().empty();
+#ifndef QT_NO_CLIPBOARD
     m_actionCopy->setEnabled(hasSelection);
     m_actionCut->setEnabled(hasSelection);
 #endif