Skip to content

Commit

Permalink
Ugh, FINE, then just check for colons
Browse files Browse the repository at this point in the history
Windows doesn't accept it for normal paths anyways, so it's a close-enough way to ensure a drive letter is specified.
  • Loading branch information
SeongGino authored Mar 26, 2024
1 parent 8c884dc commit 3d61462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ int main(int argc, char *argv[])
if(arguments.length() > 1) {
mainApp.customPath = QDir::fromNativeSeparators(arguments[arguments.indexOf("-p")+1]);
#ifdef Q_OS_WIN
if(mainApp.customPath.contains(":\\")) {
if(mainApp.customPath.contains(':')) {
#else
if(mainApp.customPath.contains("/")) {
if(mainApp.customPath.contains('/')) {
#endif // Q_OS_WIN
mainApp.customPathSet = true;
#ifdef Q_OS_WIN
Expand Down

0 comments on commit 3d61462

Please sign in to comment.