X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/667418327423ba116d24751926a95a2f1235849c..fc545e363e5352e2a672b0fa6a39facf6dc7d36b:/Constructor/src/cisternptywnd.cpp?ds=sidebyside diff --git a/Constructor/src/cisternptywnd.cpp b/Constructor/src/cisternptywnd.cpp index f12867c..31a0152 100644 --- a/Constructor/src/cisternptywnd.cpp +++ b/Constructor/src/cisternptywnd.cpp @@ -17,6 +17,15 @@ CisternPtyWnd::CisternPtyWnd(BaseObjectType* cobject, const Glib::RefPtrsignal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_btn_select_color_clicked)); dlg_select_color_cancel->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_dlg_select_color_cancel_clicked)); dlg_select_color_ok->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_dlg_select_color_ok_clicked)); + cistern = NULL; +} + +void CisternPtyWnd::show() +{ + if (cistern != NULL) { + color_preview->modify_bg( Gtk::STATE_NORMAL , cistern->get_liquid_color() ); + } + PropertyWnd::show(); } CisternPtyWnd::~CisternPtyWnd()