Meh, apparently MSVC doesn't accept 'or' in preprocessor defines either :P
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 18 Dec 2008 23:47:37 +0000 (00:47 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 18 Dec 2008 23:47:37 +0000 (00:47 +0100)
src/uisupport/bufferview.cpp
src/uisupport/nickview.cpp

index 5e3f726..eadf8f7 100644 (file)
@@ -73,7 +73,7 @@ void BufferView::init() {
   sortByColumn(0, Qt::AscendingOrder);
 
   // activated() fails on X11 and Qtopia at least
-#if defined Q_WS_QWS or defined Q_WS_X11
+#if defined Q_WS_QWS || defined Q_WS_X11
   connect(this, SIGNAL(doubleClicked(QModelIndex)), SLOT(joinChannel(QModelIndex)));
 #else
   // afaik this is better on Mac and Windows
index ad13a2f..e0a5893 100644 (file)
@@ -50,7 +50,7 @@ NickView::NickView(QWidget *parent)
 
   connect(this, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(showContextMenu(const QPoint&)));
 
-#if defined Q_WS_QWS or defined Q_WS_X11
+#if defined Q_WS_QWS || defined Q_WS_X11
   connect(this, SIGNAL(doubleClicked(QModelIndex)), SLOT(startQuery(QModelIndex)));
 #else
   // afaik this is better on Mac and Windows