summaryrefslogtreecommitdiff
path: root/dgedit/filelist.cc
diff options
context:
space:
mode:
authordeva <deva>2009-12-02 08:19:01 +0000
committerdeva <deva>2009-12-02 08:19:01 +0000
commitca1da8e0d448a47704a22685248ee7b44f2c7bec (patch)
tree7c12ab5acdd6c033df7073f903d559f9c6904015 /dgedit/filelist.cc
parent22db10eed86c90d05ed19446afd0fc007bec0d66 (diff)
Fixed renaming in extractor.
Diffstat (limited to 'dgedit/filelist.cc')
-rw-r--r--dgedit/filelist.cc4
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)