summaryrefslogtreecommitdiff
path: root/src/shared/qrceditor/resourceview.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@nokia.com>2011-11-21 13:14:13 +0100
committerEike Ziller <eike.ziller@nokia.com>2011-11-21 13:29:45 +0100
commit38e575fa1b4885ddccb13a12dcdc19cad2f329c9 (patch)
treeba54b0b5ec9fd3efa7c13fe4ca432a179e590f83 /src/shared/qrceditor/resourceview.h
parent5ab4e69fbac61e3e52ed25527285ff73a36593dc (diff)
downloadqt-creator-38e575fa1b4885ddccb13a12dcdc19cad2f329c9.tar.gz
Fix assert on undo in qrc editor
Before creating AddFilesCommand we check if files to be added are already in qrc file. If they all are in we don't create AddFilesCommand. Task-number: QTCREATORBUG-6508 Change-Id: I633f7393f1185023052ceaa0465282e1dc7957a2 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/shared/qrceditor/resourceview.h')
-rw-r--r--src/shared/qrceditor/resourceview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/qrceditor/resourceview.h b/src/shared/qrceditor/resourceview.h
index a00afd95a4..5b8a458fa9 100644
--- a/src/shared/qrceditor/resourceview.h
+++ b/src/shared/qrceditor/resourceview.h
@@ -117,6 +117,7 @@ public:
void findSamePlacePostDeletionModelIndex(int &row, QModelIndex &parent) const;
EntryBackup *removeEntry(const QModelIndex &index);
+ QStringList existingFilesSubtracted(int prefixIndex, const QStringList &fileNames) const;
void addFiles(int prefixIndex, const QStringList &fileNames, int cursorFile,
int &firstFile, int &lastFile);
void removeFiles(int prefixIndex, int firstFileIndex, int lastFileIndex);