aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvdrfan <vdrfan-nospam-@xbmc.org>2011-10-10 23:45:15 +0200
committervdrfan <vdrfan-nospam-@xbmc.org>2011-10-10 23:45:15 +0200
commit47cd9776a688b88388724a089fc60690861e37bf (patch)
tree3fad05772a024465e8e1953cab5da3c3eef6911e
parent69ea94f3f485e2f5530c6b122c1ad1b07f8cffa4 (diff)
fixed: do not enable the 'add' button in media source dialog in case the first path is empty
-rw-r--r--xbmc/dialogs/GUIDialogMediaSource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/dialogs/GUIDialogMediaSource.cpp b/xbmc/dialogs/GUIDialogMediaSource.cpp
index d5b597efa7..a10575cef4 100644
--- a/xbmc/dialogs/GUIDialogMediaSource.cpp
+++ b/xbmc/dialogs/GUIDialogMediaSource.cpp
@@ -426,6 +426,7 @@ void CGUIDialogMediaSource::UpdateButtons()
return;
CONTROL_ENABLE_ON_CONDITION(CONTROL_OK, !m_paths->Get(0)->GetPath().IsEmpty() && !m_name.IsEmpty());
+ CONTROL_ENABLE_ON_CONDITION(CONTROL_PATH_ADD, !m_paths->Get(0)->GetPath().IsEmpty());
CONTROL_ENABLE_ON_CONDITION(CONTROL_PATH_REMOVE, m_paths->Size() > 1);
// name
SET_CONTROL_LABEL2(CONTROL_NAME, m_name);