[vlmc-devel] Remove DefaultprojectLocation setting.
Hugo Beauzée-Luyssen
git at videolan.org
Fri Mar 4 17:14:10 CET 2016
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Mar 2 14:59:59 2016 +0100| [57c679af25ff7b51aa6e660825041a021bf0c89f] | committer: Hugo Beauzée-Luyssen
Remove DefaultprojectLocation setting.
This is now the workspace
> https://code.videolan.org/videolan/vlmc/commit/57c679af25ff7b51aa6e660825041a021bf0c89f
---
src/Gui/MainWindow.cpp | 7 -------
src/Gui/wizard/WelcomePage.cpp | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 08c3030..3adc443 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -275,10 +275,6 @@ MainWindow::initVlmcPreferences()
QT_TRANSLATE_NOOP( "PreferenceWidget", "Confirm clip deletion"),
QT_TRANSLATE_NOOP( "PreferenceWidget", "Ask for confirmation before deleting a clip from the timeline" ) );
- VLMC_CREATE_PREFERENCE_PATH( "vlmc/DefaultProjectLocation", QDir::homePath(),
- QT_TRANSLATE_NOOP( "PreferenceWidget", "Project default location" ),
- QT_TRANSLATE_NOOP( "PreferenceWidget", "The default location where to store projects folders" ) );
-
VLMC_CREATE_PREFERENCE_PATH( "vlmc/TempFolderLocation", QDir::tempPath() + "/VLMC/",
QT_TRANSLATE_NOOP( "PreferenceWidget", "Temporary folder" ),
QT_TRANSLATE_NOOP( "PreferenceWidget", "The temporary folder used by VLMC to process videos." ) );
@@ -523,9 +519,6 @@ void
MainWindow::checkFolders()
{
QDir dirUtil;
- if ( !dirUtil.exists( VLMC_GET_STRING( "vlmc/DefaultProjectLocation" ) ) )
- dirUtil.mkdir( VLMC_GET_STRING( "vlmc/DefaultProjectLocation" ) );
-
if ( !dirUtil.exists( VLMC_GET_STRING( "vlmc/TempFolderLocation" ) ) )
dirUtil.mkdir( VLMC_GET_STRING( "vlmc/TempFolderLocation" ) );
}
diff --git a/src/Gui/wizard/WelcomePage.cpp b/src/Gui/wizard/WelcomePage.cpp
index 47d3e04..096ec1d 100644
--- a/src/Gui/wizard/WelcomePage.cpp
+++ b/src/Gui/wizard/WelcomePage.cpp
@@ -134,7 +134,7 @@ WelcomePage::loadProject()
{
QString projectPath =
QFileDialog::getOpenFileName( NULL, tr( "Select a project file" ),
- VLMC_GET_STRING( "vlmc/DefaultProjectLocation" ),
+ VLMC_GET_STRING( "vlmc/WorkspaceLocation" ),
tr( "VLMC project file(*.vlmc)" ) );
if ( projectPath.isEmpty() ) return;
More information about the Vlmc-devel
mailing list