# HG changeset patch # User ib # Date 1367231298 0 # Node ID bb41e924fea969c71fd7954cff8045e3492c61b0 # Parent eadb3ddad6050cc4c428eeadef18206499540a94 Cosmetic: Insert blank line and relocate statement. diff -r eadb3ddad605 -r bb41e924fea9 gui/dialog/url.c --- a/gui/dialog/url.c Fri Apr 26 19:50:19 2013 +0000 +++ b/gui/dialog/url.c Mon Apr 29 10:28:18 2013 +0000 @@ -51,6 +51,7 @@ if (str) { if (!strstr(str, "://")) { gchar *tmp; + tmp = malloc(strlen(str) + 8); sprintf(tmp, "http://%s", str); free(str); @@ -64,9 +65,9 @@ listMgr(URLLIST_ITEM_ADD, item); uiSetFile(NULL, str, STREAMTYPE_STREAM); - guiInfo.NewPlay = GUI_FILE_NEW; listMgr(PLAYLIST_DELETE, 0); add_to_gui_playlist(str, PLAYLIST_ITEM_APPEND); + guiInfo.NewPlay = GUI_FILE_NEW; uiEvent(evPlay, 0); } }