[vlmc-devel] [PATCH] Fixed vlmc trying to save projects without assigned project file.
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Mon Mar 14 21:27:32 CET 2016
On 03/14/2016 04:54 AM, sanket.markan wrote:
> In absence of a projectfile and closing not clean project, one should
> save project.
> As in the attached patch.
>
>
>
> On 2016-03-13 17:28, Paweł Wegner wrote:
>> ---
>> src/Gui/MainWindow.cpp | 3 ++-
>> src/Project/Project.h | 2 +-
>> 2 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
>> index fc88afd..8f404e9 100644
>> --- a/src/Gui/MainWindow.cpp
>> +++ b/src/Gui/MainWindow.cpp
>> @@ -778,7 +778,8 @@ MainWindow::saveSettings()
>> void
>> MainWindow::closeEvent( QCloseEvent* e )
>> {
>> - if ( Core::getInstance()->project()->isClean() == false )
>> + Project *project = Core::getInstance()->project();
>> + if ( project->isClean() == false && project->hasProjectFile() )
>> {
>> QMessageBox msgBox;
>> msgBox.setText( QObject::tr( "The project has been modified."
>> ) );
>> diff --git a/src/Project/Project.h b/src/Project/Project.h
>> index 17062d3..98debfa 100644
>> --- a/src/Project/Project.h
>> +++ b/src/Project/Project.h
>> @@ -118,7 +118,7 @@ class Project : public QObject
>> void backupProjectLoaded();
>> void outdatedBackupFileFound();
>>
>> -private:
>> + private:
>> bool loadWorkflow( const QDomDocument& root );
>>
>> private:
>
>
> _______________________________________________
> Vlmc-devel mailing list
> Vlmc-devel at videolan.org
> https://mailman.videolan.org/listinfo/vlmc-devel
>
Oh well, I didn't see your reply before replying myself. Yes this is
much more appropriate!
Applied, thanks!
Regards,
--
Hugo Beauzée-Luyssen
www.beauzee.fr
More information about the Vlmc-devel
mailing list