Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dtk
dtk
Commits
0511588d
Commit
0511588d
authored
Aug 26, 2014
by
NICLAUSSE Nicolas
Browse files
fix for windows build
parent
fd88ead0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dtkGuiSupport/dtkFinder.cpp
View file @
0511588d
...
...
@@ -452,7 +452,7 @@ QString dtkFinderSideView::driveLabel(QString drive)
DWORD
dwSerialNumber
=
0
;
DWORD
dwMaxFileNameLength
=
256
;
DWORD
dwFileSystemFlags
=
0
;
bool
ret
=
GetVolumeInformation
(
drive
.
to
Ascii
().
constData
(),
bool
ret
=
GetVolumeInformation
(
drive
.
to
Latin1
().
constData
(),
szVolumeName
,
256
,
&
dwSerialNumber
,
&
dwMaxFileNameLength
,
&
dwFileSystemFlags
,
szFileSystemName
,
256
);
...
...
@@ -462,7 +462,7 @@ QString dtkFinderSideView::driveLabel(QString drive)
return
decoratedDrive
;
}
QString
vName
=
QString
::
from
Ascii
(
szVolumeName
)
;
QString
vName
=
QString
::
from
Latin1
(
szVolumeName
)
;
vName
.
trimmed
();
drive
.
remove
(
"
\\
"
);
vName
+=
" ("
+
drive
+
")"
;
...
...
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