[MPlayer-cvslog] r38531 - trunk/gui/dialog/url.c

ib subversion at mplayerhq.hu
Thu May 16 23:22:16 EEST 2024


Author: ib
Date: Thu May 16 23:22:16 2024
New Revision: 38531

Log:
Do not append to the URL combo box if the dialog is still open.

This prevents duplicate entries.

Modified:
   trunk/gui/dialog/url.c

Modified: trunk/gui/dialog/url.c
==============================================================================
--- trunk/gui/dialog/url.c	Thu May 16 23:18:53 2024	(r38530)
+++ trunk/gui/dialog/url.c	Thu May 16 23:22:16 2024	(r38531)
@@ -158,9 +158,10 @@ void ShowURLDialog(void)
 {
     urlItem *item;
 
-    if (URLDialog)
+    if (URLDialog) {
         gtkRaise(URLDialog);
-    else
+        return;
+    } else
         URLDialog = CreateURLDialog();
 
     item = listMgr(URLLIST_GET, 0);


More information about the MPlayer-cvslog mailing list