diff --git a/src/shared/qrceditor/undocommands.cpp b/src/shared/qrceditor/undocommands.cpp index 08b3ba63b19..f0ba5a8e538 100644 --- a/src/shared/qrceditor/undocommands.cpp +++ b/src/shared/qrceditor/undocommands.cpp @@ -135,7 +135,7 @@ void RemoveEntryCommand::redo() void RemoveEntryCommand::undo() { - if (m_entry == 0) { + if (m_entry != 0) { m_entry->restore(); Q_ASSERT(m_view != 0); const QModelIndex index = makeIndex();