mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Revise string literal usage
This commit covers src/gui folder. PR #16757.
This commit is contained in:
@@ -143,7 +143,7 @@ void Utils::Gui::openPath(const Path &path)
|
||||
{
|
||||
// Hack to access samba shares with QDesktopServices::openUrl
|
||||
if (path.data().startsWith(u"//"))
|
||||
QDesktopServices::openUrl(QUrl(QString::fromLatin1("file:") + path.toString()));
|
||||
QDesktopServices::openUrl(QUrl(u"file:" + path.toString()));
|
||||
else
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(path.data()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user