mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 20:36:36 -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,8 +335,7 @@ bool misc::getOpenFileName(QWidget *parent, RshareSettings::enumLastDir type
|
|||
|
||||
#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))
|
||||
file = QDir::fromNativeSeparators(file);
|
||||
file = QDir::fromNativeSeparators(file);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
|
@ -361,11 +360,9 @@ bool misc::getOpenFileNames(QWidget *parent, RshareSettings::enumLastDir type
|
|||
Settings->setLastDir(type, lastDir);
|
||||
|
||||
#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) {
|
||||
(*file) = QDir::fromNativeSeparators(*file);
|
||||
}
|
||||
for (QStringList::iterator file = files.begin(); file != files.end(); ++file) {
|
||||
(*file) = QDir::fromNativeSeparators(*file);
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue