summaryrefslogtreecommitdiff
path: root/shared/customComboBox.cpp
diff options
context:
space:
mode:
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