diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index 0c00c6a254..f92cdcc51a 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -1482,10 +1482,6 @@ void HistoryInner::keyPressEvent(QKeyEvent *e) { if (!_selected.isEmpty() && selectedForDelete == selectedForForward) { _widget->onDeleteSelected(); } - } else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) { - if (_selected.isEmpty()) { - _widget->onListEnterPressed(); - } } else { e->ignore(); } @@ -7410,6 +7406,8 @@ void HistoryWidget::keyPressEvent(QKeyEvent *e) { } _scroll.keyPressEvent(e); } + } else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) { + onListEnterPressed(); } else { e->ignore(); } diff --git a/Telegram/build/makefile_static.sh b/Telegram/build/makefile_static.sh index da1c19c1a6..3aad822f32 100755 --- a/Telegram/build/makefile_static.sh +++ b/Telegram/build/makefile_static.sh @@ -38,7 +38,9 @@ fi Replace () { CheckCommand="grep -ci '$1' Makefile" + set +e CheckCount=$(eval $CheckCommand) + set -e if [ "$CheckCount" -gt 0 ]; then echo "Requested '$1' to '$2', found - replacing.." ReplaceCommand="sed -i'.~' 's/$1/$2/g' Makefile" @@ -48,9 +50,6 @@ Replace () { fi } -Replace '\-lssl' "$ArchDirPath\/libssl\.a" -Replace '\-lcrypto' "$ArchDirPath\/libcrypto\.a" -Replace '\-lz' "$ArchDirPath\/libz\.a" Replace '\-llzma' "$ArchDirPath\/liblzma\.a" Replace '\-lXi' "$ArchDirPath\/libXi\.a $ArchDirPath\/libXext\.a" Replace '\-lSM' "$ArchDirPath\/libSM\.a" @@ -58,6 +57,7 @@ Replace '\-lICE' "$ArchDirPath\/libICE\.a" Replace '\-lfontconfig' "$ArchDirPath\/libfontconfig\.a $ArchDirPath\/libexpat\.a" Replace '\-lfreetype' "$ArchDirPath\/libfreetype\.a" Replace '\-lXext' "$ArchDirPath\/libXext\.a" +Replace '\-lz' "$LocalDirPath\/libz\.a" Replace '\-lopus' "$LocalDirPath\/libopus\.a" Replace '\-lopenal' "$LocalDirPath\/libopenal\.a" Replace '\-lavformat' "$LocalDirPath\/libavformat\.a" @@ -66,4 +66,5 @@ Replace '\-lswresample' "$LocalDirPath\/libswresample\.a" Replace '\-lswscale' "$LocalDirPath\/libswscale\.a" Replace '\-lavutil' "$LocalDirPath\/libavutil\.a" Replace '\-lva-x11' "$LocalDirPath\/libva-x11\.a" +Replace '\-lva-drm' "$LocalDirPath\/libva-drm\.a" Replace '\-lva' "$LocalDirPath\/libva\.a"