diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-04-16 20:40:14 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-04-17 21:49:15 +0200 |
| commit | a2d7ce67aa236fe52d6e860a27950dc7e3a34bd8 (patch) | |
| tree | af90369ee7bb177d0436e64c9611e61c6a508afb /src/modinfodialog.cpp | |
| parent | a14ed8fcd1f0cb06fb9353a3f672a70251394e2c (diff) | |
Merged the new open in explorer button with Silarn's code.
Diffstat (limited to 'src/modinfodialog.cpp')
| -rw-r--r-- | src/modinfodialog.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp index e2da6a2c..705f0019 100644 --- a/src/modinfodialog.cpp +++ b/src/modinfodialog.cpp @@ -721,7 +721,6 @@ void ModInfoDialog::on_deactivateESP_clicked() void ModInfoDialog::on_visitNexusLabel_linkActivated(const QString &link)
{
- this->close();
emit nexusLinkActivated(link);
}
@@ -730,7 +729,7 @@ void ModInfoDialog::linkClicked(const QUrl &url) //Ideally we'd ask the mod for the game and the web service then pass the game
//and URL to the web service
if (NexusInterface::instance(m_PluginContainer)->isURLGameRelated(url)) {
- this->close();
+
emit nexusLinkActivated(url.toString());
} else {
::ShellExecuteW(nullptr, L"open", ToWString(url.toString()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
@@ -958,6 +957,11 @@ bool ModInfoDialog::recursiveDelete(const QModelIndex &index) }
+void ModInfoDialog::on_openInExplorerButton_clicked()
+{
+ ::ShellExecuteW(nullptr, L"explore", ToWString(m_ModInfo->absolutePath()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
+}
+
void ModInfoDialog::deleteFile(const QModelIndex &index)
{
|
