From ab3ca550a9066b75c9dd7d9097b0be8eb8a07cd2 Mon Sep 17 00:00:00 2001 From: clifford Date: Thu, 28 Jan 2010 18:38:20 +0000 Subject: Clifford Wolf: Tiny code cleanup to make compiler warning go away git-svn-id: http://svn.clifford.at/openscad/trunk@359 b57f626f-c46c-0410-a088-ec61d464b74c diff --git a/Preferences.cc b/Preferences.cc index fba265d..cfc2bdb 100644 --- a/Preferences.cc +++ b/Preferences.cc @@ -149,7 +149,7 @@ void Preferences::keyPressEvent(QKeyEvent *e) close(); } else #endif - if (e->modifiers() == Qt::ControlModifier && e->key() == Qt::Key_W || + if ((e->modifiers() == Qt::ControlModifier && e->key() == Qt::Key_W) || e->key() == Qt::Key_Escape) { close(); } -- cgit v0.10.1