void DataDialog::slotOk() { Kst::ObjectPtr ptr; if (!dataObject()) ptr = createNewDataObject(); else ptr = editExistingDataObject(); setDataObject(ptr); }
void DataDialog::slotApply() { Kst::ObjectPtr ptr; if (!dataObject()) { ptr = createNewDataObject(); } else { ptr = editExistingDataObject(); } setDataObject(ptr); UpdateManager::self()->doUpdates(); UpdateServer::self()->requestUpdateSignal(); kstApp->mainWindow()->document()->setChanged(true); clearModified(); }
void DataDialog::slotApply() { Kst::ObjectPtr ptr; bool do_session_reset = false; if (!dataObject()) { ptr = createNewDataObject(); do_session_reset = true; } else { ptr = editExistingDataObject(); } setDataObject(ptr); UpdateManager::self()->doUpdates(); kstApp->mainWindow()->document()->setChanged(true); if (do_session_reset) { kstApp->mainWindow()->document()->session()->triggerReset(); } clearModified(); }