Fix CSA warnings: Called C++ object pointer is null

Logic error: Called C++ object pointer is null
 1: Value assigned to field 'mMainAction' in /home/phenom/GIT/
RetroShare/trunk/retroshare-gui/src/gui/common/UserNotify.cpp:94
 2: Assuming pointer value is null in /home/phenom/GIT/RetroShare/trunk/
retroshare-gui/src/gui/common/UserNotify.cpp:95
 3: Called C++ object pointer is null in /home/phenom/GIT/RetroShare/
trunk/retroshare-gui/src/gui/common/UserNotify.cpp:103
This commit is contained in:
Phenom 2017-04-19 14:18:35 +02:00 committed by csoler
parent 1f16f46aad
commit 90aaace69c

View File

@ -99,7 +99,7 @@ void UserNotify::initialize(QToolBar *mainToolBar, QAction *mainAction, QListWid
}
}
mListItem = listItem;
if (mListItem && !mMainAction) {
if (mListItem && mMainAction) {
mButtonText = mMainAction->text();
}
}