X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/667418327423ba116d24751926a95a2f1235849c..4ddd90e71988f16c5ea79f5de86a9fcb63973ded:/Constructor/src/cisternptywnd.cpp 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()