SUIT_Study* study = activeStudy();
if ( study && study->isSaved() ) {
+ // ask user for the confirmation
+ if ( SUIT_MessageBox::question( desktop(), tr( "REOPEN_STUDY" ), tr( "REOPEN_QUESTION" ),
+ SUIT_MessageBox::Yes | SUIT_MessageBox::No, SUIT_MessageBox::No
+ ) == SUIT_MessageBox::No )
+ return false;
+
// remember study name
QString studyName = study->studyName();
<source>CLOSE_QUESTION</source>
<translation>Do you want to save study before closing?</translation>
</message>
+ <message>
+ <source>REOPEN_STUDY</source>
+ <translation>Reopen study</translation>
+ </message>
+ <message>
+ <source>REOPEN_QUESTION</source>
+ <translation>Do you really want to re-open study?
+All the changes made since last saving will be lost.</translation>
+ </message>
</context>
</TS>