forked from qt-creator/qt-creator
Cvs: Use AsynchronousMessageBox
Event loops can lead to crashes so it is better to use a dialog which has not it's own event loop. Change-Id: Iaa97b7696c693b064ac4fa2f00d57a09e7e3c303 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
committed by
Tobias Hunger
parent
9fd5c44f4b
commit
143e23f4d1
@@ -50,6 +50,7 @@
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/documentmanager.h>
|
||||
#include <coreplugin/messagebox.h>
|
||||
#include <coreplugin/messagemanager.h>
|
||||
#include <coreplugin/mimedatabase.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
@@ -617,8 +618,8 @@ void CvsPlugin::revertAll()
|
||||
if (revertResponse.result == CvsResponse::Ok)
|
||||
cvsVersionControl()->emitRepositoryChanged(state.topLevel());
|
||||
else
|
||||
QMessageBox::warning(ICore::dialogParent(), title,
|
||||
tr("Revert failed: %1").arg(revertResponse.message), QMessageBox::Ok);
|
||||
Core::AsynchronousMessageBox::warning(title,
|
||||
tr("Revert failed: %1").arg(revertResponse.message));
|
||||
}
|
||||
|
||||
void CvsPlugin::revertCurrentFile()
|
||||
|
Reference in New Issue
Block a user