We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c3e5d1 + db67b2b commit 4f267e7Copy full SHA for 4f267e7
app/release.cpp
@@ -74,7 +74,17 @@ void Release::addVariant(Variant *variant) {
74
}
75
76
void Release::setLocalFile(const QUrl &fileUrl) {
77
- const QString filePath = fileUrl.path();
+ QString filePath = fileUrl.path();
78
+
79
+ // NOTE: on windows QUrl::path() leaves a leading
80
+ // slash like this: "/C:foo/bar", very fun!
81
+ #ifdef _WIN32
82
+ if (filePath.startsWith("/")) {
83
+ filePath.remove(0, 1);
84
+ }
85
+ #endif // _WIN32
86
87
+ qInfo() << filePath;
88
89
// Delete old custom variant (there's really only one, but iterate anyway)
90
for (auto variant : m_variants) {
0 commit comments