Fix IME being interrupted after reconnection

Signed-off-by: Yonsh Lin <yonsh@live.com> (github: yonsh)
This commit is contained in:
Yonsh Lin 2017-09-07 21:39:12 +08:00 committed by John Preston
parent a0fbbf2fb6
commit 11a46a1072

View file

@ -460,6 +460,7 @@ void MainWindow::ui_hideMediaPreview() {
void MainWindow::showConnecting(const QString &text, const QString &reconnect) {
if (_connecting) {
_connecting->set(text, reconnect);
_connecting->show();
} else {
_connecting.create(bodyWidget(), text, reconnect);
_connecting->show();
@ -470,7 +471,7 @@ void MainWindow::showConnecting(const QString &text, const QString &reconnect) {
void MainWindow::hideConnecting() {
if (_connecting) {
_connecting.destroyDelayed();
_connecting->hide();
}
}