Skip to content

Commit

Permalink
Set parent window properly to gnc_verify_dialog, and i18n string
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Sep 6, 2020
1 parent cbf2a7b commit 979a050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gnucash/gnome/gnc-plugin-page-account-tree.c
Expand Up @@ -425,7 +425,7 @@ finish (GncPluginPage* page)
{
if (gnc_get_ongoing_scrub ())
{
gboolean ret = gnc_verify_dialog (NULL, FALSE, "%s", "A scrubbing operation is currently pending, do you want to abort it?");
gboolean ret = gnc_verify_dialog (GTK_WINDOW (gnc_plugin_page_get_window (GNC_PLUGIN_PAGE (page))), FALSE, _("A scrubbing operation is currently pending, do you want to abort it?"));
if (ret)
{
gnc_set_abort_scrub (TRUE);
Expand Down
2 changes: 1 addition & 1 deletion gnucash/gnome/gnc-plugin-page-register.c
Expand Up @@ -1920,7 +1920,7 @@ finish_scrub (GncPluginPage* page)
{
if (is_scrubbing)
{
gboolean ret = gnc_verify_dialog (NULL, FALSE, "%s", "A scrubbing operation is currently pending, do you want to abort it?");
gboolean ret = gnc_verify_dialog (GTK_WINDOW (gnc_plugin_page_get_window (GNC_PLUGIN_PAGE (page))), FALSE, _("A scrubbing operation is currently pending, do you want to abort it?"));
if (ret)
{
abort_scrub = TRUE;
Expand Down

0 comments on commit 979a050

Please sign in to comment.