X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.cpp;h=f0fa9dc118b718347da5a5904b28f2cee9afd6a3;hb=add9e1afd5a4ec7eb104a7cd111429037740a0a0;hp=17766cdb98f0969ffc17cf275077798f09c60147;hpb=19740eba83b9d776d8f62cae02762ee3b08e3b67;p=quassel.git diff --git a/src/uisupport/nickview.cpp b/src/uisupport/nickview.cpp index 17766cdb..f0fa9dc1 100644 --- a/src/uisupport/nickview.cpp +++ b/src/uisupport/nickview.cpp @@ -53,11 +53,11 @@ NickView::NickView(QWidget *parent) connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), SLOT(showContextMenu(const QPoint &))); -#if defined Q_WS_QWS || defined Q_WS_X11 - connect(this, SIGNAL(doubleClicked(QModelIndex)), SLOT(startQuery(QModelIndex))); -#else +#if defined Q_OS_MACOS || defined Q_OS_WIN // afaik this is better on Mac and Windows connect(this, SIGNAL(activated(QModelIndex)), SLOT(startQuery(QModelIndex))); +#else + connect(this, SIGNAL(doubleClicked(QModelIndex)), SLOT(startQuery(QModelIndex))); #endif } @@ -149,4 +149,4 @@ void NickView::startQuery(const QModelIndex &index) return; Client::bufferModel()->switchToOrStartQuery(networkId, ircUser->nick()); -} \ No newline at end of file +}