aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2020-03-06 23:29:26 +0300
committerCrystalwarrior <varsash@gmail.com>2020-03-06 23:29:26 +0300
commite4b90d36a90e4601df23b5634aa5ad123d8f6424 (patch)
tree5560c00edb110ef1f89136793fd0420bc3823e3a
parentee9de222ad9c1c4ebf2e6a1acc2cf5d2fc9dd77c (diff)
Fix the rightclick options for editing files not working
-rw-r--r--src/courtroom.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 3b0d0f54..f22c8536 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -3446,7 +3446,7 @@ void Courtroom::on_iniswap_edit_requested()
QString p_path = ao_app->get_character_path(current_char, "char.ini");
if (!file_exists(p_path))
return;
- QDesktopServices::openUrl(QUrl(p_path));
+ QDesktopServices::openUrl(QUrl::fromLocalFile(p_path));
}
void Courtroom::on_iniswap_remove_clicked()
@@ -3558,7 +3558,7 @@ void Courtroom::on_sfx_edit_requested()
}
}
}
- QDesktopServices::openUrl(QUrl(p_path));
+ QDesktopServices::openUrl(QUrl::fromLocalFile(p_path));
}
void Courtroom::on_sfx_remove_clicked()
@@ -3644,7 +3644,7 @@ void Courtroom::on_effects_edit_requested()
return;
}
}
- QDesktopServices::openUrl(QUrl(p_path));
+ QDesktopServices::openUrl(QUrl::fromLocalFile(p_path));
}
void Courtroom::on_character_effects_edit_requested()
{
@@ -3653,7 +3653,7 @@ void Courtroom::on_character_effects_edit_requested()
if (!dir_exists(p_path))
return;
- QDesktopServices::openUrl(QUrl(p_path));
+ QDesktopServices::openUrl(QUrl::fromLocalFile(p_path));
}
void Courtroom::on_effects_dropdown_changed(int p_index)