Skip to content

Commit

Permalink
pluginbase/preferences: Initialized s with nullptr.
Browse files Browse the repository at this point in the history
The fact that it was not initialized caused unwanted behaviors.

Signed-off-by: andreidanila1 <[email protected]>
  • Loading branch information
andreidanila1 authored and adisuciu committed Aug 21, 2024
1 parent a5b2e63 commit 6175300
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pluginbase/src/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Preferences *Preferences::pinstance_{nullptr};

Preferences::Preferences(QObject *parent)
: QObject(parent)
, s(nullptr)
{
connect(parent, SIGNAL(aboutToQuit()), this, SLOT(save()));
}
Expand Down

0 comments on commit 6175300

Please sign in to comment.