diff options
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 858a2e6b..7542e251 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -41,7 +41,8 @@ WhisperTab::WhisperTab(const std::string &nick) : WhisperTab::~WhisperTab() { - chatWindow->removeWhisper(mNick); + if (chatWindow) + chatWindow->removeWhisper(mNick); } void WhisperTab::handleInput(const std::string &msg) |