summaryrefslogtreecommitdiff
path: root/shared/customComboBox.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:04:59 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:04:59 +0200
commitf570e2f2685aa43aa518c2f8578391c1847cddbe (patch)
treeb9376b3a7e807c5e0c4cf3d5615c14034d9675d6 /shared/customComboBox.cpp
parent3.2 (diff)
downloadFreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.gz
FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.bz2
FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.zip
3.3
Diffstat (limited to 'shared/customComboBox.cpp')
-rw-r--r--shared/customComboBox.cpp4
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
bgstack15