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
Graphics
libksane
Commits
d9ab4117
Commit
d9ab4117
authored
Sep 09, 2021
by
Alexander Stippich
Browse files
add back clearDeviceOptions for KSaneWidget
got lost during the KSaneCore/KSaneWidget split
parent
caeace8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ksanewidget.cpp
View file @
d9ab4117
...
...
@@ -367,7 +367,7 @@ bool KSaneWidget::closeDevice()
if
(
!
result
)
{
return
false
;
}
d
->
clearDeviceOptions
();
// disable the interface until a new device is opened.
d
->
m_optsTabWidget
->
setDisabled
(
true
);
d
->
m_previewViewer
->
setDisabled
(
true
);
...
...
src/ksanewidget_p.cpp
View file @
d9ab4117
...
...
@@ -116,7 +116,7 @@ void KSaneWidgetPrivate::clearDeviceOptions()
m_handledOptions
.
clear
();
// remove the remaining layouts/widgets
and read thread
// remove the remaining layouts/widgets
delete
m_basicOptsTab
;
m_basicOptsTab
=
nullptr
;
...
...
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