mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 09:03:51 -05:00
Removed check for QSysInfo::WindowsVersion in misc::getOpenFileName/getOpenFileNames
This commit is contained in:
parent
9816be4b53
commit
47916ee8c0
1 changed files with 4 additions and 7 deletions
|
|
@ -335,7 +335,6 @@ bool misc::getOpenFileName(QWidget *parent, RshareSettings::enumLastDir type
|
||||||
|
|
||||||
#ifdef WINDOWS_SYS
|
#ifdef WINDOWS_SYS
|
||||||
// fix bug in Qt for Windows Vista and higher, convert path from native separators
|
// fix bug in Qt for Windows Vista and higher, convert path from native separators
|
||||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based))
|
|
||||||
file = QDir::fromNativeSeparators(file);
|
file = QDir::fromNativeSeparators(file);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -361,8 +360,6 @@ bool misc::getOpenFileNames(QWidget *parent, RshareSettings::enumLastDir type
|
||||||
Settings->setLastDir(type, lastDir);
|
Settings->setLastDir(type, lastDir);
|
||||||
|
|
||||||
#ifdef WINDOWS_SYS
|
#ifdef WINDOWS_SYS
|
||||||
// fix bug in Qt for Windows Vista and higher, convert path from native separators
|
|
||||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based))
|
|
||||||
for (QStringList::iterator file = files.begin(); file != files.end(); ++file) {
|
for (QStringList::iterator file = files.begin(); file != files.end(); ++file) {
|
||||||
(*file) = QDir::fromNativeSeparators(*file);
|
(*file) = QDir::fromNativeSeparators(*file);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue