Fix undo operation for removing items from qrc files.

Task-number: QTCREATORBUG-1106
This commit is contained in:
con
2010-04-15 14:16:32 +02:00
parent ee230f2d54
commit 73e6ba480e

View File

@@ -135,7 +135,7 @@ void RemoveEntryCommand::redo()
void RemoveEntryCommand::undo() void RemoveEntryCommand::undo()
{ {
if (m_entry == 0) { if (m_entry != 0) {
m_entry->restore(); m_entry->restore();
Q_ASSERT(m_view != 0); Q_ASSERT(m_view != 0);
const QModelIndex index = makeIndex(); const QModelIndex index = makeIndex();