summaryrefslogtreecommitdiff
path: root/dgedit/filelist.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-05-02 16:17:38 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-05-02 16:17:38 +0200
commit10923660851e14fc954dcb0917e9f50185ab401f (patch)
tree2e09f710ec07d08692dfd8d65c262e0bc0a91c37 /dgedit/filelist.cc
parent7ec14ac0fa7e95dda01d396edbd190a8aeb78b2b (diff)
Saving path to last loaded raw files.
Diffstat (limited to 'dgedit/filelist.cc')
-rw-r--r--dgedit/filelist.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dgedit/filelist.cc b/dgedit/filelist.cc
index c8e3b79..d956c9c 100644
--- a/dgedit/filelist.cc
+++ b/dgedit/filelist.cc
@@ -48,12 +48,13 @@ FileList::FileList()
void FileList::addFiles()
{
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open file"),
- "", tr("Audio Files (*.wav)"));
+ path, tr("Audio Files (*.wav)"));
QStringList::Iterator i = files.begin();
while(i != files.end()) {
QString file = *i;
QFileInfo fi(file);
QString name = fi.baseName();
+ path = fi.absolutePath();
QListWidgetItem *item = new QListWidgetItem();
setItemFile(item, file);