mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
fix a mistake of https://github.com/xiaoyifang/goldendict-ng/pull/1912
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
This commit is contained in:
parent
f694c3210e
commit
f6434f4219
|
@ -111,7 +111,7 @@ HotKey::HotKey( QKeySequence const & seq ):
|
||||||
|
|
||||||
QKeySequence HotKey::toKeySequence() const
|
QKeySequence HotKey::toKeySequence() const
|
||||||
{
|
{
|
||||||
if ( key2 != 0 || key2 != Qt::Key::Key_unknown ) {
|
if ( key2 != 0 && key2 != Qt::Key::Key_unknown ) {
|
||||||
return { QKeyCombination( modifiers, static_cast< Qt::Key >( key1 ) ),
|
return { QKeyCombination( modifiers, static_cast< Qt::Key >( key1 ) ),
|
||||||
QKeyCombination( modifiers, static_cast< Qt::Key >( key2 ) ) };
|
QKeyCombination( modifiers, static_cast< Qt::Key >( key2 ) ) };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue