gtk: open recent should behave the same as open

If running, pause before loading a new rom

From Jan Bücken (nooris), #3288654
This commit is contained in:
riccardom 2011-06-05 16:28:48 +00:00
parent 59ec9700c6
commit 2691463d4a
1 changed files with 3 additions and 0 deletions

View File

@ -1022,6 +1022,9 @@ static void OpenRecent(GtkRecentChooser *chooser, gpointer user_data)
gchar *uri, *romname;
int ret;
if (desmume_running())
Pause();
uri = gtk_recent_chooser_get_current_uri(chooser);
romname = g_filename_from_uri(uri, NULL, NULL);
ret = Open(romname);