mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Replace cDebug() with Logs::DebugEnabled().
This commit is contained in:
@@ -493,7 +493,9 @@ void MainWindow::setInnerFocus() {
|
||||
bool MainWindow::eventFilter(QObject *object, QEvent *e) {
|
||||
switch (e->type()) {
|
||||
case QEvent::KeyPress: {
|
||||
if (cDebug() && e->type() == QEvent::KeyPress && object == windowHandle()) {
|
||||
if (Logs::DebugEnabled()
|
||||
&& (e->type() == QEvent::KeyPress)
|
||||
&& object == windowHandle()) {
|
||||
auto key = static_cast<QKeyEvent*>(e)->key();
|
||||
FeedLangTestingKey(key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user