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
5f621072
Commit
5f621072
authored
Jun 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: first step to fix directory remembering.
parent
4c4aae84
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletion
+5
-1
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+1
-0
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-0
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+2
-1
modules/gui/qt4/util/qt_dirs.hpp
modules/gui/qt4/util/qt_dirs.hpp
+1
-0
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
5f621072
...
@@ -171,6 +171,7 @@ void FileOpenPanel::browseFile()
...
@@ -171,6 +171,7 @@ void FileOpenPanel::browseFile()
new
QListWidgetItem
(
toNativeSeparators
(
file
),
ui
.
fileListWidg
);
new
QListWidgetItem
(
toNativeSeparators
(
file
),
ui
.
fileListWidg
);
item
->
setFlags
(
Qt
::
ItemIsEditable
|
Qt
::
ItemIsEnabled
);
item
->
setFlags
(
Qt
::
ItemIsEditable
|
Qt
::
ItemIsEnabled
);
ui
.
fileListWidg
->
addItem
(
item
);
ui
.
fileListWidg
->
addItem
(
item
);
savedirpathFromFile
(
file
);
}
}
updateButtons
();
updateButtons
();
updateMRL
();
updateMRL
();
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
5f621072
...
@@ -301,6 +301,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
...
@@ -301,6 +301,7 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg )
i
=
0
;
i
=
0
;
foreach
(
const
QString
&
file
,
files
)
foreach
(
const
QString
&
file
,
files
)
p_arg
->
psz_results
[
i
++
]
=
strdup
(
qtu
(
toNativeSepNoSlash
(
file
)
)
);
p_arg
->
psz_results
[
i
++
]
=
strdup
(
qtu
(
toNativeSepNoSlash
(
file
)
)
);
p_intf
->
p_sys
->
filepath
=
qfu
(
p_arg
->
psz_results
[
i
]
);
}
}
/* Callback */
/* Callback */
...
...
modules/gui/qt4/qt4.cpp
View file @
5f621072
...
@@ -490,8 +490,9 @@ static void *Thread( void *obj )
...
@@ -490,8 +490,9 @@ static void *Thread( void *obj )
/* Save the path */
/* Save the path */
config_PutPsz
(
p_intf
,
"qt-filedialog-path"
,
config_PutPsz
(
p_intf
->
p_libvlc
,
"qt-filedialog-path"
,
qtu
(
p_intf
->
p_sys
->
filepath
)
);
qtu
(
p_intf
->
p_sys
->
filepath
)
);
msg_Dbg
(
p_intf
,
"%s"
,
qtu
(
p_intf
->
p_sys
->
filepath
)
);
/* Delete the application automatically */
/* Delete the application automatically */
#ifdef Q_WS_X11
#ifdef Q_WS_X11
...
...
modules/gui/qt4/util/qt_dirs.hpp
View file @
5f621072
...
@@ -45,6 +45,7 @@ static inline QString removeTrailingSlash( QString s )
...
@@ -45,6 +45,7 @@ static inline QString removeTrailingSlash( QString s )
return
s
;
return
s
;
}
}
#define savedirpathFromFile( a ) p_intf->p_sys->filepath = QFileInfo( a ).path()
#define toNativeSepNoSlash( a ) toNativeSeparators( removeTrailingSlash( a ) )
#define toNativeSepNoSlash( a ) toNativeSeparators( removeTrailingSlash( a ) )
static
inline
QString
colon_escape
(
QString
s
)
static
inline
QString
colon_escape
(
QString
s
)
...
...
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