Commit 988f64e9 authored by Michael Catanzaro's avatar Michael Catanzaro

Fix incorrect assertions that were recently added

Fixes crash when using or closing the benchmark and SMART dialogs. This
was a regression from da0fbba2.

https://bugzilla.gnome.org/show_bug.cgi?id=755206
parent c7a405fd
......@@ -1642,6 +1642,10 @@ gdu_ata_smart_dialog_show (GduWindow *window,
{
gint response;
response = gtk_dialog_run (GTK_DIALOG (data->dialog));
if (response < 0)
break;
/* Keep in sync with .ui file */
switch (response)
{
......@@ -1657,9 +1661,6 @@ gdu_ata_smart_dialog_show (GduWindow *window,
default:
g_assert_not_reached ();
}
if (response < 0)
break;
}
g_source_remove (timeout_id);
......
......@@ -1650,6 +1650,10 @@ gdu_benchmark_dialog_show (GduWindow *window,
{
gint response;
response = gtk_dialog_run (GTK_DIALOG (data->dialog));
if (response < 0)
break;
/* Keep in sync with .ui file */
switch (response)
{
......@@ -1664,9 +1668,6 @@ gdu_benchmark_dialog_show (GduWindow *window,
default:
g_assert_not_reached ();
}
if (response < 0)
break;
}
g_source_remove (timeout_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment