Fixed reused message box to still update the text when necessary

The Variables message box is used for both the external editor as well
as the file browser instructions.

Reviewed-by: Daniel Molkentin
This commit is contained in:
Thorbjørn Lindeijer
2010-03-11 14:28:47 +01:00
parent 7ffc3733bc
commit efb453da0c
2 changed files with 7 additions and 5 deletions

View File

@@ -37,7 +37,6 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h>
#include <QtGui/QMessageBox>
#include <QtGui/QMainWindow>
#include <QtCore/QCoreApplication>
@@ -219,9 +218,12 @@ void GeneralSettings::resetFileBrowser()
#endif
void GeneralSettings::variableHelpDialogCreator(const QString& helpText)
void GeneralSettings::variableHelpDialogCreator(const QString &helpText)
{
if (m_dialog) {
if (m_dialog->text() != helpText)
m_dialog->setText(helpText);
m_dialog->show();
m_dialog->raise();
m_dialog->activateWindow();