Showing the changes to interface/src/Menu.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1505,3 +1505,10 @@ void Menu::removeMenuItem(const QString& menu, const QString& menuitem) { · 1504 unmodified lines | ||
| 1505 | 1505 | QMenuBar::repaint(); |
| 1506 | 1506 | }; |
| 1507 | 1507 | |
| 1508 | +QString Menu::getSnapshotsLocation() const { | |
| 1509 | + if (_snapshotsLocation.isNull() || _snapshotsLocation.isEmpty() || QDir(_snapshotsLocation).exists() == false) { | |
| 1510 | + return QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); | |
| 1511 | + } | |
| 1512 | + return _snapshotsLocation; | |
| 1513 | +} | |
| 1514 | + | |