Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 1 file). Show all
Unified · Split
| @@ -71,8 +71,8 @@ void setupPreferences() { · 70 unmodified lines | |||
| 71 | // Snapshots | 71 | // Snapshots |
| 72 | static const QString SNAPSHOTS { "Snapshots" }; | 72 | static const QString SNAPSHOTS { "Snapshots" }; |
| 73 | { | 73 | { |
| 74 | auto getter = [=]()->QString { return Snapshot::snapshotsLocation.get(); }; | 74 | auto getter = []()->QString { return Snapshot::snapshotsLocation.get(); }; |
| 75 | auto setter = [=](const QString& value) { Snapshot::snapshotsLocation.set(value); }; | 75 | auto setter = [](const QString& value) { Snapshot::snapshotsLocation.set(value); }; |
| 76 | auto preference = new BrowsePreference(SNAPSHOTS, "Put my snapshots here", getter, setter); | 76 | auto preference = new BrowsePreference(SNAPSHOTS, "Put my snapshots here", getter, setter); |
| 77 | preferences->addPreference(preference); | 77 | preferences->addPreference(preference); |
| 78 | } | 78 | } |