Commit 42ce52e9 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Written dataset descriptor when clicked save button of confirm dialog.

parent 8863131c
......@@ -400,6 +400,7 @@ MainWindow::closeEvent( QCloseEvent* event )
switch( clickedButton )
{
case QMessageBox::Save:
model->Save();
break;
case QMessageBox::Discard:
......
......@@ -270,6 +270,14 @@ DatasetModel
return false;
}
/*******************************************************************************/
void
DatasetModel
::Save() const
{
WriteDescriptor();
}
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
......
......@@ -152,6 +152,10 @@ public:
*/
inline ConstAbstractImageModelList GetImageModels() const;
/**
*/
void Save() const;
//
// AbstractModel overrides.
......
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