aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matt Ullman2015-12-12 16:26:05 -0500
committerGravatar Matt Ullman2015-12-12 16:26:05 -0500
commitd064b996a95459299f1e763f9d45be07518ae2eb (patch)
treec40a1b52f39b26f9de89d1a697ebbe6d19112bfb
parenteditor: Don't call methods from null pointers (diff)
downloadKVIrc-d064b996a95459299f1e763f9d45be07518ae2eb.tar.gz
KVIrc-d064b996a95459299f1e763f9d45be07518ae2eb.tar.bz2
KVIrc-d064b996a95459299f1e763f9d45be07518ae2eb.zip
maskeditor: Require a connection to add masks
-rw-r--r--src/kvirc/ui/KviMaskEditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvirc/ui/KviMaskEditor.cpp b/src/kvirc/ui/KviMaskEditor.cpp
index 7d92ca3c7..e034e9ae6 100644
--- a/src/kvirc/ui/KviMaskEditor.cpp
+++ b/src/kvirc/ui/KviMaskEditor.cpp
@@ -295,7 +295,7 @@ void KviMaskEditor::removeClicked()
void KviMaskEditor::addClicked()
{
- if(m_pChannel)
+ if(m_pChannel && m_pChannel->connection())
{
if(m_pChannel->isMeHalfOp() ||
m_pChannel->isMeOp() ||