diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-06 20:02:16 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-06 20:02:16 -0400 |
| commit | b5019f586e08d4ae83ebc33b622591f23c73a80e (patch) | |
| tree | 05603c87c28701b32f43087a80c431158a859150 | |
| parent | e8d14d1ea527608bdaae4fe8f83c949082067b16 (diff) | |
FileDialogMemory didn't actually use the cached directory
| -rw-r--r-- | src/filedialogmemory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filedialogmemory.cpp b/src/filedialogmemory.cpp index 554a6235..0e3e9793 100644 --- a/src/filedialogmemory.cpp +++ b/src/filedialogmemory.cpp @@ -66,7 +66,7 @@ QString FileDialogMemory::getOpenFileName( if (currentDir.isEmpty()) {
auto itor = instance().m_Cache.find(dirID);
if (itor != instance().m_Cache.end()) {
- currentDir = itor->first;
+ currentDir = itor->second;
}
}
@@ -90,7 +90,7 @@ QString FileDialogMemory::getExistingDirectory( if (currentDir.isEmpty()) {
auto itor = instance().m_Cache.find(dirID);
if (itor != instance().m_Cache.end()) {
- currentDir = itor->first;
+ currentDir = itor->second;
}
}
|
