X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.cpp;h=eb5dd11a299dbfdf1ba13e44d3944cded825638f;hp=75e4d73df10dc432549e29699163bf6025f9e048;hb=aec9c711900a443bfa7860fa86c6e9c86b81a3e7;hpb=de2c1a4f9bbae7070cf8fd8247db765a23d28a9c diff --git a/src/uisupport/nickview.cpp b/src/uisupport/nickview.cpp index 75e4d73d..eb5dd11a 100644 --- a/src/uisupport/nickview.cpp +++ b/src/uisupport/nickview.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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 +}