diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:04:59 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:04:59 +0200 |
commit | f570e2f2685aa43aa518c2f8578391c1847cddbe (patch) | |
tree | b9376b3a7e807c5e0c4cf3d5615c14034d9675d6 /shared/customComboBox.cpp | |
parent | 3.2 (diff) | |
download | FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.gz FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.bz2 FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.zip |
3.3
Diffstat (limited to 'shared/customComboBox.cpp')
-rw-r--r-- | shared/customComboBox.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/customComboBox.cpp b/shared/customComboBox.cpp index f2eec7a9..e21e915c 100644 --- a/shared/customComboBox.cpp +++ b/shared/customComboBox.cpp @@ -50,6 +50,10 @@ void CustomComboBox::OnKeyEvent(wxKeyEvent& event) void CustomComboBox::addPairToFolderHistory(const wxString& newFolder, unsigned int maxHistSize) { + //don't add empty directories + if (newFolder.empty()) + return; + const wxString oldVal = this->GetValue(); //insert new folder or put it to the front if already existing |