Fixed alpha 0.10.23 build for Linux.
This commit is contained in:
parent
a86c85485a
commit
72e34dc5b1
|
@ -131,8 +131,7 @@ GtkDialog *QGtkDialog::gtkDialog() const {
|
||||||
|
|
||||||
void QGtkDialog::exec() {
|
void QGtkDialog::exec() {
|
||||||
if (auto w = App::wnd()) {
|
if (auto w = App::wnd()) {
|
||||||
w->onReActivate();
|
w->reActivateWindow();
|
||||||
QTimer::singleShot(200, w, SLOT(onReActivate()));
|
|
||||||
}
|
}
|
||||||
if (modality() == Qt::ApplicationModal) {
|
if (modality() == Qt::ApplicationModal) {
|
||||||
// block input to the whole app, including other GTK dialogs
|
// block input to the whole app, including other GTK dialogs
|
||||||
|
|
|
@ -475,8 +475,7 @@ PopupMenu::~PopupMenu() {
|
||||||
}
|
}
|
||||||
#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64
|
#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64
|
||||||
if (auto w = App::wnd()) {
|
if (auto w = App::wnd()) {
|
||||||
w->onReActivate();
|
w->reActivateWindow();
|
||||||
QTimer::singleShot(200, w, SLOT(onReActivate()));
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,8 +125,7 @@ void MainWindow::hideMediaview() {
|
||||||
if (_mediaView && !_mediaView->isHidden()) {
|
if (_mediaView && !_mediaView->isHidden()) {
|
||||||
_mediaView->hide();
|
_mediaView->hide();
|
||||||
#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64
|
#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64
|
||||||
onReActivate();
|
reActivateWindow();
|
||||||
QTimer::singleShot(200, this, SLOT(onReActivate()));
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,11 @@ public:
|
||||||
return _titleText;
|
return _titleText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reActivateWindow() {
|
||||||
|
onReActivate();
|
||||||
|
QTimer::singleShot(200, this, SLOT(onReActivate()));
|
||||||
|
}
|
||||||
|
|
||||||
void showPhoto(const PhotoOpenClickHandler *lnk, HistoryItem *item = 0);
|
void showPhoto(const PhotoOpenClickHandler *lnk, HistoryItem *item = 0);
|
||||||
void showPhoto(PhotoData *photo, HistoryItem *item);
|
void showPhoto(PhotoData *photo, HistoryItem *item);
|
||||||
void showPhoto(PhotoData *photo, PeerData *item);
|
void showPhoto(PhotoData *photo, PeerData *item);
|
||||||
|
|
|
@ -63,8 +63,7 @@ void Manager::notificationActivated(PeerId peerId, MsgId msgId) {
|
||||||
auto history = App::history(peerId);
|
auto history = App::history(peerId);
|
||||||
window->showFromTray();
|
window->showFromTray();
|
||||||
#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64
|
#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64
|
||||||
window->onReActivate();
|
window->reActivateWindow();
|
||||||
QTimer::singleShot(200, window, SLOT(onReActivate()));
|
|
||||||
#endif
|
#endif
|
||||||
if (App::passcoded()) {
|
if (App::passcoded()) {
|
||||||
window->setInnerFocus();
|
window->setInnerFocus();
|
||||||
|
|
Loading…
Reference in New Issue