# HG changeset patch # User Chris Cannam # Date 1298989373 0 # Node ID f98c8ece30353b5a09435cd9d96490425f47ebc7 # Parent b8ed12c2035f8021e76051aacd0b4b1f9e481ea8# Parent 4811eb34e819d08921a6e1265dc50f699d09cade Merge from branch "new-branches-with-status-outside-tabs" diff -r 4811eb34e819 -r f98c8ece3035 mainwindow.cpp --- a/mainwindow.cpp Tue Mar 01 14:22:29 2011 +0000 +++ b/mainwindow.cpp Tue Mar 01 14:22:53 2011 +0000 @@ -1759,11 +1759,11 @@ settings(); return; case ACT_TEST_HG_EXT: - QMessageBox::warning + MoreInformationDialog::warning (this, tr("Failed to run Mercurial"), tr("Failed to run Mercurial with extension enabled"), - tr("The Mercurial program failed to run with the EasyMercurial interaction extension enabled.
This may indicate an installation problem with EasyMercurial.

You may be able to continue working if you switch off “Use EasyHg Mercurial Extension” in %1. Note that remote repositories that require authentication may not work if you do this.").arg(setstr), + tr("The Mercurial program failed to run with the EasyMercurial interaction extension enabled.
This may indicate an installation problem.

You may be able to continue working if you switch off “Use EasyHg Mercurial Extension” in %1. Note that remote repositories that require authentication might not work if you do this.").arg(setstr), output); settings(); return; @@ -1810,20 +1810,12 @@ command += " " + arg; } - //!!! - - QString message = tr("

Command failed

" - "

The following command failed:

" - "%1" - "%2
") - .arg(command) - .arg((output.trimmed() != "") ? - tr("

Its output said:

%1") - .arg(xmlEncode(output.left(800)) - .replace("\n", "
")) - : ""); - - QMessageBox::warning(this, tr("Command failed"), message); + MoreInformationDialog::warning + (this, + tr("Command failed"), + tr("Command failed"), + tr("A Mercurial command failed to run correctly. This may indicate an installation problem or some other problem with EasyMercurial.

See “More Details” for the command output."), + output); } void MainWindow::commandCompleted(HgAction completedAction, QString output)