comparison framework/MainWindowBase.h @ 344:63dec7dc11cc tonioni

Fix potential for crash on reloading session file - loading selections should not emit signal as if user had just made them manually
author Chris Cannam
date Thu, 03 Apr 2014 08:51:30 +0100
parents 4eccff14b4d8
children b3609adae921
comparison
equal deleted inserted replaced
343:a93802543a5a 344:63dec7dc11cc
351 virtual Pane *addPane() { return m_mw->addPaneToStack(); } 351 virtual Pane *addPane() { return m_mw->addPaneToStack(); }
352 virtual void setWindowSize(int width, int height) { 352 virtual void setWindowSize(int width, int height) {
353 m_mw->resizeConstrained(QSize(width, height)); 353 m_mw->resizeConstrained(QSize(width, height));
354 } 354 }
355 virtual void addSelection(int start, int end) { 355 virtual void addSelection(int start, int end) {
356 m_mw->m_viewManager->addSelection(Selection(start, end)); 356 m_mw->m_viewManager->addSelectionQuietly(Selection(start, end));
357 } 357 }
358 protected: 358 protected:
359 MainWindowBase *m_mw; 359 MainWindowBase *m_mw;
360 }; 360 };
361 361