[vlmc-devel] given default folder path on action load project
Sanket Markan
git at videolan.org
Mon Mar 14 21:31:29 CET 2016
vlmc | branch: master | Sanket Markan <sanketmarkan at gmail.com> | Fri Mar 11 19:31:34 2016 +0530| [8aae45732e5259163c3fbd0cdeca02c1d6e177c9] | committer: Hugo Beauzée-Luyssen
given default folder path on action load project
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> https://code.videolan.org/videolan/vlmc/commit/8aae45732e5259163c3fbd0cdeca02c1d6e177c9
---
src/Gui/MainWindow.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index fc88afd..e7bc767 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -361,9 +361,9 @@ MainWindow::on_actionSave_As_triggered()
void
MainWindow::on_actionLoad_Project_triggered()
{
- // FIXME: We probably could use a default folder.
+ QString folder = VLMC_GET_STRING( "vlmc/WorkspaceLocation" );
QString fileName = QFileDialog::getOpenFileName( NULL, tr( "Please choose a project file" ),
- "", tr( "VLMC project file(*.vlmc)" ) );
+ folder, tr( "VLMC project file(*.vlmc)" ) );
if ( fileName.isEmpty() == true )
return ;
Core::getInstance()->loadProject( fileName );
More information about the Vlmc-devel
mailing list