Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 594:72b4870f0e6b
Debug output
author | Chris Cannam |
---|---|
date | Tue, 07 Mar 2017 11:48:29 +0000 |
parents | 1918bf5c9a9e |
children | b23bebfdfaba |
comparison
equal
deleted
inserted
replaced
593:821aba42c1bb | 594:72b4870f0e6b |
---|---|
1403 return FileOpenFailed; | 1403 return FileOpenFailed; |
1404 } | 1404 } |
1405 } catch (const InsufficientDiscSpace &e) { | 1405 } catch (const InsufficientDiscSpace &e) { |
1406 emit hideSplash(); | 1406 emit hideSplash(); |
1407 m_openingAudioFile = false; | 1407 m_openingAudioFile = false; |
1408 SVCERR << "MainWindowBase: Caught InsufficientDiscSpace in file open" << endl; | |
1408 QMessageBox::critical | 1409 QMessageBox::critical |
1409 (this, tr("Not enough disc space"), | 1410 (this, tr("Not enough disc space"), |
1410 tr("<b>Not enough disc space</b><p>There doesn't appear to be enough spare disc space to accommodate any necessary temporary files.</p><p>Please clear some space and try again.</p>").arg(e.what())); | 1411 tr("<b>Not enough disc space</b><p>There doesn't appear to be enough spare disc space to accommodate any necessary temporary files.</p><p>Please clear some space and try again.</p>").arg(e.what())); |
1411 return FileOpenFailed; | 1412 return FileOpenFailed; |
1412 } catch (const std::bad_alloc &e) { // reader may have rethrown this after cleaning up | 1413 } catch (const std::bad_alloc &e) { // reader may have rethrown this after cleaning up |
1413 emit hideSplash(); | 1414 emit hideSplash(); |
1414 m_openingAudioFile = false; | 1415 m_openingAudioFile = false; |
1416 SVCERR << "MainWindowBase: Caught bad_alloc in file open" << endl; | |
1415 QMessageBox::critical | 1417 QMessageBox::critical |
1416 (this, tr("Not enough memory"), | 1418 (this, tr("Not enough memory"), |
1417 tr("<b>Not enough memory</b><p>There doesn't appear to be enough memory to accommodate any necessary temporary data.</p>")); | 1419 tr("<b>Not enough memory</b><p>There doesn't appear to be enough memory to accommodate any necessary temporary data.</p>")); |
1418 return FileOpenFailed; | 1420 return FileOpenFailed; |
1419 } | 1421 } |