mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
Don't delete profile when toggling on_profile
This commit is contained in:
@ -686,12 +686,6 @@ on_profile_toggled (GtkWidget *widget, gpointer data)
|
|||||||
if (gtk_toggle_tool_button_get_active (GTK_TOGGLE_TOOL_BUTTON (app->profile_button)))
|
if (gtk_toggle_tool_button_get_active (GTK_TOGGLE_TOOL_BUTTON (app->profile_button)))
|
||||||
{
|
{
|
||||||
set_busy (app->main_window, TRUE);
|
set_busy (app->main_window, TRUE);
|
||||||
if (app->profile && !app->profile_from_file)
|
|
||||||
{
|
|
||||||
profile_free (app->profile);
|
|
||||||
app->profile = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
ensure_profile (app);
|
ensure_profile (app);
|
||||||
set_busy (app->main_window, FALSE);
|
set_busy (app->main_window, FALSE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user