Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 84:41c491657587
* Further fix for restoring layer visibility from session file
* Better handling of error state in bzip file device to avoid spurious errors
* Fix #1495001 deleted layers prevail in saved session file
author | Chris Cannam |
---|---|
date | Fri, 05 Jan 2007 15:49:10 +0000 |
parents | d82e332cb178 |
children | 4eae5b521a34 |
comparison
equal
deleted
inserted
replaced
83:0d2fb43b5ee5 | 84:41c491657587 |
---|---|
2871 toXml(out); | 2871 toXml(out); |
2872 out.flush(); | 2872 out.flush(); |
2873 | 2873 |
2874 QApplication::restoreOverrideCursor(); | 2874 QApplication::restoreOverrideCursor(); |
2875 | 2875 |
2876 if (bzFile.errorString() != "") { | 2876 if (!bzFile.isOK()) { |
2877 QMessageBox::critical(this, tr("Failed to write file"), | 2877 QMessageBox::critical(this, tr("Failed to write file"), |
2878 tr("Failed to write to file \"%1\": %2") | 2878 tr("Failed to write to file \"%1\": %2") |
2879 .arg(path).arg(bzFile.errorString())); | 2879 .arg(path).arg(bzFile.errorString())); |
2880 bzFile.close(); | 2880 bzFile.close(); |
2881 return false; | 2881 return false; |