forked from qt-creator/qt-creator
Project Explorer: fix possible nullptr derefs and remove dead
The dead store is not harmfull, but add noise when checking for dead stores that are due to logic errors. Change-Id: I18084c357696311b6556c7bc60832a72b3318e92 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -212,7 +212,7 @@ void ShortCutManager::updateActions(Core::IEditor* currentEditor)
|
||||
&& document->isModified());
|
||||
|
||||
QString quotedName;
|
||||
if (currentEditor)
|
||||
if (currentEditor && document)
|
||||
quotedName = '"' + document->displayName() + '"';
|
||||
|
||||
m_saveAsAction.setText(tr("Save %1 As...").arg(quotedName));
|
||||
|
||||
Reference in New Issue
Block a user