diff options
author | deva <deva> | 2009-12-02 08:19:01 +0000 |
---|---|---|
committer | deva <deva> | 2009-12-02 08:19:01 +0000 |
commit | ca1da8e0d448a47704a22685248ee7b44f2c7bec (patch) | |
tree | 7c12ab5acdd6c033df7073f903d559f9c6904015 /dgedit/filelist.cc | |
parent | 22db10eed86c90d05ed19446afd0fc007bec0d66 (diff) |
Fixed renaming in extractor.
Diffstat (limited to 'dgedit/filelist.cc')
-rw-r--r-- | dgedit/filelist.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dgedit/filelist.cc b/dgedit/filelist.cc index 29a12c2..00d7d87 100644 --- a/dgedit/filelist.cc +++ b/dgedit/filelist.cc @@ -155,8 +155,12 @@ QString FileList::itemName(QListWidgetItem *i) void FileList::setItemName(QListWidgetItem *i, QString name) { + QString oldname = itemName(i); + i->setData(Qt::UserRole, name); i->setData(Qt::DisplayRole, name + "\t" + itemFile(i)); + + if(oldname != "" && oldname != name) emit nameChanged(itemFile(i), name); } void FileList::setItemMaster(QListWidgetItem *i, bool master) |