History

Moved function into .cpp

Stojce Slavkovski committed 12 years ago

Commit c67e42b1 parent 05023a22 files · +8 −6Browse files

Showing the changes to interface/src/Menu.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Menu.cpp+7−0
@@ -1505,3 +1505,10 @@ void Menu::removeMenuItem(const QString& menu, const QString& menuitem) { · 1504 unmodified lines
15051505 QMenuBar::repaint();
15061506 };
15071507
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+