Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
185b2a6c
Commit
185b2a6c
authored
Jul 26, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remember the QFileDialog states.
parent
464d09b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+11
-1
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
185b2a6c
/*****************************************************************************
* open.cpp : Panels for the open dialogs
****************************************************************************
* Copyright (C) 2006-200
7
the VideoLAN team
* Copyright (C) 2006-200
8
the VideoLAN team
* Copyright (C) 2007 Société des arts technologiques
* Copyright (C) 2007 Savoir-faire Linux
*
...
...
@@ -44,6 +44,7 @@
#include <QDirModel>
#include <QScrollArea>
#include <QUrl>
#include <QSettings>
/**************************************************************************
* Open Files and subtitles *
...
...
@@ -74,6 +75,11 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
dialogBox
->
setFileMode
(
QFileDialog
::
ExistingFiles
);
dialogBox
->
setAcceptMode
(
QFileDialog
::
AcceptOpen
);
#if HAS_QT43
QSettings
settings
(
"vlc"
,
"vlc-qt-interface"
);
dialogBox
->
restoreState
(
settings
.
value
(
"file-dialog-state"
).
toByteArray
()
);
#endif
dialogBox
->
setViewMode
(
config_GetInt
(
p_intf
,
"qt-open-detail"
)
?
QFileDialog
::
Detail
:
QFileDialog
::
List
);
...
...
@@ -138,6 +144,10 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
FileOpenPanel
::~
FileOpenPanel
()
{
#if HAS_QT43
QSettings
settings
(
"vlc"
,
"vlc-qt-interface"
);
settings
.
setValue
(
"file-dialog-state"
,
dialogBox
->
saveState
()
);
#endif
}
/* Show a fileBrowser to select a subtitle */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment