summaryrefslogtreecommitdiff
path: root/dgedit/filelist.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dgedit/filelist.cc')
-rw-r--r--dgedit/filelist.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/dgedit/filelist.cc b/dgedit/filelist.cc
index 52e6757..aca1f5d 100644
--- a/dgedit/filelist.cc
+++ b/dgedit/filelist.cc
@@ -31,7 +31,8 @@
FileList::FileList()
{
- connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(selectionChanged()));
+ connect(this, SIGNAL(itemDoubleClicked(QListWidgetItem *)),
+ this, SLOT(selectionChanged(QListWidgetItem *)));
}
void FileList::addFiles()
@@ -55,8 +56,8 @@ void FileList::addFiles()
}
}
-void FileList::selectionChanged()
+void FileList::selectionChanged(QListWidgetItem *item)
{
- QString filename = currentItem()->text();
+ QString filename = item->text();
emit masterFileChanged(filename);
}