Commit a738b689 authored by Murray Cumming's avatar Murray Cumming
Browse files

Fix a crash when specifying a static image on the layout.

* glom/utility_widgets/imageglom.cc: on_menupopup_activate_select_file():
Check for a null parent window pointer to avoid a crash, fixing bug
#600954 (Michael Hasselmann).
parent 2669878c
2009-11-06 Murray Cumming <murrayc@murrayc.com>
Fix a crash when specifying a static image on the layout.
* glom/utility_widgets/imageglom.cc: on_menupopup_activate_select_file():
Check for a null parent window pointer to avoid a crash, fixing bug
#600954 (Michael Hasselmann).
2009-11-04 David King <davidk@openismus.com>
 
* glom.xml: Add Maemo-specific category for classification of .glom
......
......@@ -339,7 +339,7 @@ bool Box_Data_Details::fill_from_database()
if(element->get_name() != layout_item->get_name())
continue;
//Compare the relationship and related relationshp:
//Compare the relationship and related relationship:
sharedptr<const UsesRelationship> uses_a = layout_item;
sharedptr<const UsesRelationship> uses_b = element;
if(*uses_a == *uses_b)
......
......@@ -435,7 +435,9 @@ void ImageGlom::on_menupopup_activate_select_file()
std::auto_ptr<Gtk::Dialog> dialog_keeper(dialog);
App_Glom* pApp = get_application();
dialog->set_transient_for(*pApp);
if(pApp)
dialog->set_transient_for(*pApp);
dialog->load(uri);
if(dialog->run() == Gtk::RESPONSE_ACCEPT)
......
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