diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e2cff06872..364e2303b2 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2281,6 +2281,7 @@ void MainWindow::setCurrentFile(const QString &filename)
#else
setWindowTitle(QString("%1[*] - %2").arg(shownName).arg(qApp->applicationName()));
#endif
+ ui->actionShowProjectFolder->setDisabled(m_currentFile.isEmpty());
}
void MainWindow::on_actionAbout_Shotcut_triggered()
@@ -4183,6 +4184,11 @@ void MainWindow::on_actionOpenXML_triggered()
}
}
+void MainWindow::on_actionShowProjectFolder_triggered()
+{
+ Util::showInFolder(m_currentFile);
+}
+
void MainWindow::onFocusChanged(QWidget *, QWidget * ) const
{
LOG_DEBUG() << "Focuswidget changed";
diff --git a/src/mainwindow.h b/src/mainwindow.h
index e2380a16c2..b5357a96c0 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -333,6 +333,7 @@ private slots:
void on_menuExternal_aboutToShow();
void on_actionUpgrade_triggered();
void on_actionOpenXML_triggered();
+ void on_actionShowProjectFolder_triggered();
void onAutosaveTimeout();
void onFocusChanged(QWidget *old, QWidget *now) const;
void onFocusObjectChanged(QObject *obj) const;
diff --git a/src/mainwindow.ui b/src/mainwindow.ui
index c688594c11..0b967d911c 100644
--- a/src/mainwindow.ui
+++ b/src/mainwindow.ui
@@ -70,6 +70,8 @@
+
+
@@ -316,7 +318,7 @@
false
- Qt::ToolButtonFollowStyle
+ Qt::ToolButtonStyle::ToolButtonFollowStyle
false
@@ -393,7 +395,7 @@
&About Shotcut
- QAction::AboutRole
+ QAction::MenuRole::AboutRole
@@ -401,7 +403,7 @@
About Qt
- QAction::AboutQtRole
+ QAction::MenuRole::AboutQtRole
@@ -905,8 +907,7 @@
-
- ..
+
Close
@@ -1403,6 +1404,11 @@
Weekly
+
+
+ Show Project in Folder
+
+