bool DataModelGUI::notify(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key) { // The GUI is inactive whenever a progress bar exist. We wait with updates // until then. if (mpProgressBar != NULL) return false; // update all initial value if (action != ListViews::RENAME) refreshInitialValues(); emit notifyView(objectType, action, key); return true; }
bool DataModelGUI::notify(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key) { // The GUI is inactive whenever a progress bar exist. We wait with updates // until then. if (mpProgressBar != NULL) return false; // update all initial value if (action != ListViews::RENAME && // not needed after rename !(action == ListViews::ADD && objectType == ListViews::MODEL) // not needed when model was loaded ) { refreshInitialValues(); } emit notifyView(objectType, action, key); return true; }