From b5019f586e08d4ae83ebc33b622591f23c73a80e Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Sat, 6 Jul 2019 20:02:16 -0400 Subject: FileDialogMemory didn't actually use the cached directory --- src/filedialogmemory.cpp | 4 ++-- 1 file 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; } } -- cgit v1.3.1