Skip to content

Commit ac57859

Browse files
committed
qt: Fix deprecated QCharRef usage
1 parent 23fab1a commit ac57859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/splashscreen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ SplashScreen::~SplashScreen()
137137
bool SplashScreen::eventFilter(QObject * obj, QEvent * ev) {
138138
if (ev->type() == QEvent::KeyPress) {
139139
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev);
140-
if(keyEvent->text()[0] == 'q') {
140+
if (keyEvent->key() == Qt::Key_Q) {
141141
m_node.startShutdown();
142142
}
143143
}

0 commit comments

Comments
 (0)