~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to gui/error.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Moritz Muehlenhoff
  • Date: 2011-05-25 19:02:23 UTC
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20110525190223-fiqm0oaec714xk31
Tags: upstream-1.3.0
ImportĀ upstreamĀ versionĀ 1.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
20
 *
21
 
 * $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-2-1/gui/error.cpp $
22
 
 * $Id: error.cpp 49759 2010-06-15 10:44:51Z sev $
 
21
 * $URL$
 
22
 * $Id$
23
23
 *
24
24
 */
25
25
 
36
36
        alert.runModal();
37
37
}
38
38
 
39
 
void displayErrorDialog(Common::Error error, const char *extraText) {
 
39
void displayErrorDialog(const Common::Error &error, const char *extraText) {
40
40
        Common::String errorText(extraText);
41
41
        errorText += " ";
42
 
        errorText += _(Common::errorToString(error));
 
42
        errorText += _(error.getDesc());
43
43
        GUI::MessageDialog alert(errorText);
44
44
        alert.runModal();
45
45
}