summaryrefslogtreecommitdiff
path: root/lib/folder_history_box.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:25 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:25 +0200
commit94e1d2e78b6ff92d5a1c971c277cb6ac792d1c70 (patch)
tree338d2ab72f79901f5d32c96d63cec36f30bcf44e /lib/folder_history_box.cpp
parent4.4 (diff)
downloadFreeFileSync-94e1d2e78b6ff92d5a1c971c277cb6ac792d1c70.tar.gz
FreeFileSync-94e1d2e78b6ff92d5a1c971c277cb6ac792d1c70.tar.bz2
FreeFileSync-94e1d2e78b6ff92d5a1c971c277cb6ac792d1c70.zip
4.5
Diffstat (limited to 'lib/folder_history_box.cpp')
-rw-r--r--lib/folder_history_box.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/folder_history_box.cpp b/lib/folder_history_box.cpp
index b395cbf4..c8bd042a 100644
--- a/lib/folder_history_box.cpp
+++ b/lib/folder_history_box.cpp
@@ -60,8 +60,8 @@ void FolderHistoryBox::OnHideDropDown(wxCommandEvent& event)
}
#endif
-
-void FolderHistoryBox::update(const wxString& dirname)
+//set value and update list are technically entangled: see potential bug description below
+void FolderHistoryBox::setValueAndUpdateList(const wxString& dirname)
{
//it may be a little lame to update the list on each mouse-button click, but it should be working and we dont't have to manipulate wxComboBox internals
@@ -69,8 +69,7 @@ void FolderHistoryBox::update(const wxString& dirname)
//add some aliases to allow user changing to volume name and back, if possible
#ifdef FFS_WIN
- const Zstring activePath = toZ(GetValue());
- std::vector<Zstring> aliases = getDirectoryAliases(activePath);
+ std::vector<Zstring> aliases = getDirectoryAliases(toZ(dirname));
dirList.insert(dirList.end(), aliases.begin(), aliases.end());
#endif
bgstack15