Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hadi Charara
Dolphin
Commits
67e3855b
Commit
67e3855b
authored
Jun 20, 2021
by
Hadi Charara
Browse files
Fixed ReadmePanel destructor
It can now save the state of whether is is enabled or not in the configuration file.
parent
b2570980
Pipeline
#66877
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/panels/readme/readmepanel.cpp
View file @
67e3855b
...
...
@@ -29,6 +29,12 @@ ReadmePanel::ReadmePanel ( QWidget* parent ) :
this
,
SLOT
(
toggleView
(
bool
)));
}
ReadmePanel
::~
ReadmePanel
()
{
ReadmePanelSettings
::
self
()
->
save
();
}
void
ReadmePanel
::
toggleView
(
bool
b
)
{
ReadmePanelSettings
::
setEnabled
(
b
);
...
...
src/panels/readme/readmepanel.h
View file @
67e3855b
...
...
@@ -19,7 +19,7 @@ class ReadmePanel : public Panel
public:
explicit
ReadmePanel
(
QWidget
*
parent
=
nullptr
);
~
ReadmePanel
()
override
=
default
;
~
ReadmePanel
()
override
;
QSharedPointer
<
QAction
>
toggleViewAction
;
public
Q_SLOTS
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment