mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Book Options did not raise when already open
If you open File->Properties and the dialogue gets hidden and you go to open it again the existing dialogue was not being raised to the front. This was due to a bad cast.
This commit is contained in:
parent
3456596a1c
commit
8ad6e04549
@ -4098,10 +4098,15 @@ static gboolean
|
||||
show_handler (const char *class_name, gint component_id,
|
||||
gpointer user_data, gpointer iter_data)
|
||||
{
|
||||
GtkWidget *dialog;
|
||||
GNCOptionWin *optwin = user_data;
|
||||
GtkWidget *widget;
|
||||
|
||||
dialog = GTK_WIDGET(user_data);
|
||||
gtk_window_present(GTK_WINDOW(dialog));
|
||||
if (!optwin)
|
||||
return(FALSE);
|
||||
|
||||
widget = gnc_options_dialog_widget(optwin);
|
||||
|
||||
gtk_window_present(GTK_WINDOW(widget));
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user