diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-07 19:43:11 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-07 20:16:28 -0500 |
| commit | 0b8fbfdc57ad22c996fa88f6d974269afec004fd (patch) | |
| tree | 3d376717dea00dda1c5bea997b4552cbb2d98b92 /src/settings.cpp | |
| parent | dd5367f488de7cd312e53705ffc970a723951ca2 (diff) | |
larger initial size for the instance dialog
save geometry if settings are available
Diffstat (limited to 'src/settings.cpp')
| -rw-r--r-- | src/settings.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index a8ada6ba..54d32786 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -86,14 +86,20 @@ Settings::~Settings() } } -Settings &Settings::instance() +Settings& Settings::instance() { if (s_Instance == nullptr) { throw std::runtime_error("no instance of \"Settings\""); } + return *s_Instance; } +Settings* Settings::maybeInstance() +{ + return s_Instance; +} + void Settings::processUpdates( const QVersionNumber& currentVersion, const QVersionNumber& lastVersion) { |
