aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/channelsjoin/channelsjoinwindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-09-18 12:07:21 +0000
committerGravatar Fabio Bas2010-09-18 12:07:21 +0000
commit0e5e7acda3c8ad1e6be102cc1724f31c217cdda2 (patch)
tree815cbf6a82ae37055a6470d192e6ba6ee9adfa6a /src/modules/channelsjoin/channelsjoinwindow.cpp
parentreworked patch for #777, should fix #964 (diff)
downloadKVIrc-0e5e7acda3c8ad1e6be102cc1724f31c217cdda2.tar.gz
KVIrc-0e5e7acda3c8ad1e6be102cc1724f31c217cdda2.tar.bz2
KVIrc-0e5e7acda3c8ad1e6be102cc1724f31c217cdda2.zip
fix for #963
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5012 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/channelsjoin/channelsjoinwindow.cpp')
-rw-r--r--src/modules/channelsjoin/channelsjoinwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/channelsjoin/channelsjoinwindow.cpp b/src/modules/channelsjoin/channelsjoinwindow.cpp
index 3ebfbbe10..0b5919c85 100644
--- a/src/modules/channelsjoin/channelsjoinwindow.cpp
+++ b/src/modules/channelsjoin/channelsjoinwindow.cpp
@@ -69,7 +69,7 @@ KviChannelsJoinWindow::KviChannelsJoinWindow(QWidget * par, const char * name)
m_pTreeWidget->setSelectionMode(QAbstractItemView::SingleSelection);
g->addWidget(m_pTreeWidget,0,0,1,2);
connect(m_pTreeWidget,SIGNAL(itemClicked(QTreeWidgetItem *,int)),this,SLOT(itemClicked(QTreeWidgetItem *,int)));
- connect(m_pTreeWidget,SIGNAL(itemActivated(QTreeWidgetItem *,int)),this,SLOT(itemDoubleClicked(QTreeWidgetItem *,int)));
+ connect(m_pTreeWidget,SIGNAL(itemDoubleClicked(QTreeWidgetItem *,int)),this,SLOT(itemDoubleClicked(QTreeWidgetItem *,int)));
m_pGroupBox = new KviTalGroupBox(Qt::Horizontal,__tr2qs("Channel" ),this);
@@ -241,7 +241,7 @@ void KviChannelsJoinWindow::itemClicked(QTreeWidgetItem * it, int)
{
if(!it)
return;
- if(!it->parent())
+ if(it->childCount())
return;
QString szTmp = it->text(0);
@@ -253,7 +253,7 @@ void KviChannelsJoinWindow::itemDoubleClicked(QTreeWidgetItem * it, int)
{
if(!it)
return;
- if(!it->parent())
+ if(it->childCount())
return;
QString szTmp = it->text(0);