[gnome-control-center] Printers: Don't crash because of external panel switch
- From: Marek KaÅÃk <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Printers: Don't crash because of external panel switch
- Date: Mon, 12 Dec 2011 11:56:20 +0000 (UTC)
commit 5421c92eb624f664c98ff08a1f3a179928e36b52
Author: Marek Kasik <mkasik redhat com>
Date: Mon Dec 12 12:56:00 2011 +0100
Printers: Don't crash because of external panel switch
Don't crash when exiting from new printer dialog due to external change
of panel (e.g. clicking "Network Settings" during run of the new printer
dialog). (rhbz #760587)
panels/printers/cc-printers-panel.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c
index 098647a..dd54c9d 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -136,6 +136,12 @@ cc_printers_panel_dispose (GObject *object)
CcPrintersPanelPrivate *priv = CC_PRINTERS_PANEL (object)->priv;
int i;
+ if (priv->pp_new_printer_dialog)
+ {
+ pp_new_printer_dialog_free (priv->pp_new_printer_dialog);
+ priv->pp_new_printer_dialog = NULL;
+ }
+
free_dests (CC_PRINTERS_PANEL (object));
if (priv->num_jobs > 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]