From 6adeb52e93adbd122d8fe3f84d90970890e94578 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Mon, 15 Jun 2015 22:00:00 +0000 Subject: [PATCH] Fixed possible dereference of null pointer in NotifyPage. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8478 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/settings/NotifyPage.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/settings/NotifyPage.cpp b/retroshare-gui/src/gui/settings/NotifyPage.cpp index 502cbef5c..3e98c4349 100755 --- a/retroshare-gui/src/gui/settings/NotifyPage.cpp +++ b/retroshare-gui/src/gui/settings/NotifyPage.cpp @@ -347,10 +347,9 @@ void NotifyPage::load() notifyToggled(); - ui.chatLobbies_TextToNotify->setEnabled(mChatLobbyUserNotify->isCountSpecificText()) ; - ui.chatLobbies_CountFollowingText->setChecked(mChatLobbyUserNotify->isCountSpecificText()) ; - if (mChatLobbyUserNotify){ + ui.chatLobbies_TextToNotify->setEnabled(mChatLobbyUserNotify->isCountSpecificText()) ; + ui.chatLobbies_CountFollowingText->setChecked(mChatLobbyUserNotify->isCountSpecificText()) ; ui.chatLobbies_CountUnRead->setChecked(mChatLobbyUserNotify->isCountUnRead()); ui.chatLobbies_CheckNickName->setChecked(mChatLobbyUserNotify->isCheckForNickName()); ui.chatLobbies_TextToNotify->setPlainText(mChatLobbyUserNotify->textToNotify());