Skip to content

Commit

Permalink
Fix | open file command error
Browse files Browse the repository at this point in the history
  • Loading branch information
Golevka2001 committed Oct 26, 2022
1 parent 964dc76 commit cd9b0af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selectingdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "selectingdialog.h"

#include <QDesktopServices>
#include <QDir>
#include <QUrl>

#include "ui_selectingdialog.h"
Expand Down Expand Up @@ -62,5 +61,5 @@ void SelectingDialog::on_vehicle_selector_activated(int index)
/* open the file */
void SelectingDialog::on_open_button_clicked()
{
QDesktopServices::openUrl(QUrl(QDir::fromNativeSeparators(file_path)));
QDesktopServices::openUrl(QUrl::fromLocalFile(file_path));
}

0 comments on commit cd9b0af

Please sign in to comment.