comparison main/OSCHandler.cpp @ 232:99e0dfd3ea75

* Various fixes to object lifetime management, particularly in the spectrum layer and for notification of main model deletion. The main purpose of this is to improve the behaviour of the spectrum, but I think it may also help with #1840922 Various crashes in Layer Summary window.
author Chris Cannam
date Wed, 23 Jan 2008 15:43:27 +0000
parents b5a2428f647b
children 842745edded8
comparison
equal deleted inserted replaced
231:e8a7a935128e 232:99e0dfd3ea75
279 if (type == LayerFactory::UnknownLayer) { 279 if (type == LayerFactory::UnknownLayer) {
280 std::cerr << "WARNING: MainWindow::handleOSCMessage: unknown layer " 280 std::cerr << "WARNING: MainWindow::handleOSCMessage: unknown layer "
281 << "type " << str.toStdString() << std::endl; 281 << "type " << str.toStdString() << std::endl;
282 } else { 282 } else {
283 283
284 PaneConfiguration configuration(type, 284 LayerConfiguration configuration(type,
285 getMainModel(), 285 getMainModel(),
286 channel); 286 channel);
287 287
288 addPane(configuration, 288 addPane(configuration,
289 tr("Add %1 Pane") 289 tr("Add %1 Pane")
290 .arg(LayerFactory::getInstance()-> 290 .arg(LayerFactory::getInstance()->
291 getLayerPresentationName(type))); 291 getLayerPresentationName(type)));