diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-04-17 09:26:56 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-04-17 21:50:41 +0200 |
| commit | b1329c18cde91c9e245f59475ae3b32c2c663a8c (patch) | |
| tree | afe82937cd1beb16ea63ddb05831ad026c41722b /src | |
| parent | 62dc387de644a0a47156079f78f7e0ab174abdaa (diff) | |
Added Enter shortcut support for ovewrite as well to open the Explorer window.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3eb7244a..0d9ca4a9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2626,7 +2626,9 @@ void MainWindow::openExplorer_activated() QModelIndex idx = selection->currentIndex();
ModInfo::Ptr modInfo = ModInfo::getByIndex(idx.data(Qt::UserRole + 1).toInt());
- if (modInfo->isRegular()) {
+ std::vector<ModInfo::EFlag> flags = modInfo->getFlags();
+
+ if (modInfo->isRegular() || (std::find(flags.begin(), flags.end(), ModInfo::FLAG_OVERWRITE) != flags.end())) {
::ShellExecuteW(nullptr, L"explore", ToWString(modInfo->absolutePath()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
}
|
