On windows last used folder was stored by its URL, which cannot by
used QFileDialog::getXXXFileName.
This patch will store last used folder by its URL systematically and
use QFileDialog::getXXXURL. This allows to store non file location (ie: smb)
Fix#19905
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
The sub-file wants a file path, not an URI. Set it accordingly.
NOTE: Either way, this won´t work if the path contains a whitespace
because of longstanding bug #1952.
This attempts to reduce the mixing up of URLs and file path (and the
often associated back and forth conversions) by using URLs as much as
possible
Fix#17841
The getOpenFileNames() and getSaveFileName() methods of QFileDialog only work
on local paths and return a blank string if the dialog is used to select a
remote file (e.g., on a Samba share). As of Qt 5.2 the QFileDialog class
provides the methods getOpenFileUrls() and getSaveFileUrl() that return QUrl
objects which can contain URLs to remote paths. Use these methods when an
appropriate version of the Qt libraries are available so that the paths to
remote files are returned correctly when selected via the various file
selection dialogs.
Signed-off-by: Frank Praznik <frank.praznik@gmail.com>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.80).aspx only
mentions the _ prefixed variable.
gcc will always define the _ prefixed variable, like Visual Studio.
The prefixless one is defined in some language standards, e.g. gnu99
but not c99.
Subtitle is the adjective describing what kind of text. So "subtitle text" is an adjective phrase describing what kind of encoding.
For example, we don't listen to "audios tracks", program "videos codecs", or open "playlists files". Therefore, use the correct form of the word subtitle for the context.
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
When there is an ambiguity, the caller is responsible for determining
whether a string is an URL or a path. In most cases, the string is
known as a file path.