forked from qt-creator/qt-creator
Fix undo operation for removing items from qrc files.
Task-number: QTCREATORBUG-1106
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user