OSDN Git Service
(root)
/
kde
/
kde-extraapps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05a88e1
)
jovie: check if clipboard is empty before speaking it
author
Ivailo Monev
<xakepa10@gmail.com>
Sun, 27 Jun 2021 14:01:05 +0000
(17:01 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Sun, 27 Jun 2021 14:01:05 +0000
(17:01 +0300)
fixes hang when the clipboard is empty
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
jovie/jovie/jovie.cpp
patch
|
blob
|
history
diff --git
a/jovie/jovie/jovie.cpp
b/jovie/jovie/jovie.cpp
index
9a4113d
..
bf1166c
100644
(file)
--- a/
jovie/jovie/jovie.cpp
+++ b/
jovie/jovie/jovie.cpp
@@
-266,7
+266,7
@@
int Jovie::sayClipboard()
QString text = cb->text();
// Speak it.
- if (!text.is
Null
())
+ if (!text.is
Empty
())
{
return Speaker::Instance()->say(callingAppId(), text, 0);
} else {