[easytag/wip/musicbrainz-support] Bug Fix for Fetch More Results



commit 0a085a957a2744ac6729703bbe02ccd78fb36fd9
Author: Abhinav <abhijangda hotmail com>
Date:   Wed Aug 6 22:39:15 2014 +0530

    Bug Fix for Fetch More Results

 src/mb_search.h          |    4 ++--
 src/musicbrainz_dialog.c |    6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/mb_search.h b/src/mb_search.h
index 7909d52..8bcc36f 100755
--- a/src/mb_search.h
+++ b/src/mb_search.h
@@ -33,8 +33,8 @@
  ****************/
 
 #define NAME_MAX_SIZE 256
-#define SEARCH_LIMIT_INT 2
-#define SEARCH_LIMIT_STR "2"
+#define SEARCH_LIMIT_INT 10
+#define SEARCH_LIMIT_STR "10"
 
 GCancellable *mb5_search_cancellable;
 
diff --git a/src/musicbrainz_dialog.c b/src/musicbrainz_dialog.c
index 1824cd5..80edda0 100755
--- a/src/musicbrainz_dialog.c
+++ b/src/musicbrainz_dialog.c
@@ -568,6 +568,12 @@ btn_fetch_more_clicked (GtkWidget *btn, gpointer user_data)
     dlg = ET_MUSICBRAINZ_DIALOG (mbDialog);
     mb_dialog_priv = ET_MUSICBRAINZ_DIALOG_GET_PRIVATE (dlg);
     
+    if (et_mb_entity_view_get_current_level (ET_MB_ENTITY_VIEW (mb_dialog_priv->entityView)) !=
+        1)
+    {
+        return;
+    }
+
     if (mb_dialog_priv->search->type == ET_MB_SEARCH_TYPE_MANUAL)
     {
         ManualSearchThreadData *thread_data;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]