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