[vlmc-devel] [PATCH] Fixed vlmc trying to save projects without assigned project file.
sanket.markan
sanket.markan at students.iiit.ac.in
Mon Mar 14 04:54:32 CET 2016
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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-save-project-without-project-file-while-quitting.patch
Type: text/x-diff
Size: 766 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlmc-devel/attachments/20160314/8a954825/attachment.patch>
More information about the Vlmc-devel
mailing list