409 |
408 |
410 setName( newpath ); |
409 setName( newpath ); |
411 } |
410 } |
412 |
411 |
413 if( !save () ) { |
412 if( !save () ) { |
414 message = fmt( "Failed to save %1: %2\nDo you still want to close?", |
413 message = fmt( QObject::tr( "Failed to save %1: %2\nDo you still want to close?" ), |
415 name(), strerror( errno )); |
414 name(), strerror( errno )); |
416 |
415 |
417 if( QMessageBox::critical( g_win, "Save Failure", message, |
416 if( QMessageBox::critical( g_win, "Save Failure", message, |
418 ( QMessageBox::Yes | QMessageBox::No ), QMessageBox::No ) == QMessageBox::No) |
417 ( QMessageBox::Yes | QMessageBox::No ), QMessageBox::No ) == QMessageBox::No) |
419 { |
418 { |
527 |
526 |
528 if( !g_aborted ) |
527 if( !g_aborted ) |
529 { |
528 { |
530 // Tell the user loading failed. |
529 // Tell the user loading failed. |
531 setlocale( LC_ALL, "C" ); |
530 setlocale( LC_ALL, "C" ); |
532 critical( fmt( "Failed to open %1: %2", path, strerror( errno ))); |
531 critical( fmt( QObject::tr( "Failed to open %1: %2" ), path, strerror( errno ))); |
533 } |
532 } |
534 |
533 |
535 g_loadingMainFile = false; |
534 g_loadingMainFile = false; |
536 return; |
535 return; |
537 } |
536 } |