Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
20370b4c
Commit
20370b4c
authored
Dec 11, 2020
by
Alexander Lohnau
💬
Browse files
Do not create instance of GeneralSettings just to access static members
parent
78458667
Pipeline
#43819
passed with stage
in 6 minutes and 52 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/dolphinmainwindow.cpp
View file @
20370b4c
...
...
@@ -134,10 +134,9 @@ DolphinMainWindow::DolphinMainWindow() :
connect
(
undoManager
,
&
KIO
::
FileUndoManager
::
jobRecordingFinished
,
this
,
&
DolphinMainWindow
::
showCommand
);
GeneralSettings
*
generalSettings
=
GeneralSettings
::
self
();
const
bool
firstRun
=
(
generalSettings
->
version
()
<
200
);
const
bool
firstRun
=
(
GeneralSettings
::
version
()
<
200
);
if
(
firstRun
)
{
g
eneralSettings
->
setViewPropsTimestamp
(
QDateTime
::
currentDateTime
());
G
eneralSettings
::
setViewPropsTimestamp
(
QDateTime
::
currentDateTime
());
}
setAcceptDrops
(
true
);
...
...
@@ -174,7 +173,7 @@ DolphinMainWindow::DolphinMainWindow() :
this
,
&
DolphinMainWindow
::
updatePasteAction
);
QAction
*
toggleFilterBarAction
=
actionCollection
()
->
action
(
QStringLiteral
(
"toggle_filter"
));
toggleFilterBarAction
->
setChecked
(
g
eneralSettings
->
filterBar
());
toggleFilterBarAction
->
setChecked
(
G
eneralSettings
::
filterBar
());
if
(
firstRun
)
{
menuBar
()
->
setVisible
(
false
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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