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
6aa69092
Commit
6aa69092
authored
Jun 20, 2021
by
Alexander Stippich
Browse files
do not allow to query for new devices when a device is opened
CCBUG: 438229
parent
ce992725
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ksanewidget.cpp
View file @
6aa69092
...
...
@@ -337,7 +337,12 @@ QString KSaneWidget::selectDevice(QWidget *parent)
void
KSaneWidget
::
initGetDeviceList
()
const
{
d
->
m_findDevThread
->
start
();
/* On some SANE backends, the handle becomes invalid when
* querying for new devices. Hence, this is only allowed when
* no device is currently opened. */
if
(
d
->
m_saneHandle
==
nullptr
)
{
d
->
m_findDevThread
->
start
();
}
}
bool
KSaneWidget
::
openDevice
(
const
QString
&
deviceName
)
...
...
Write
Preview
Markdown
is supported
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