mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
bug fix: segfault when load project with folio report linked but without the same potential text
(Assert QList(), in conductor.cpp) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2815 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1395,6 +1395,7 @@ Terminal * Conductor::relatedPotentialTerminal (Terminal *t) {
|
||||
* @return l'editeur de schemas parent ou 0
|
||||
*/
|
||||
QETDiagramEditor* Conductor::diagramEditor() const {
|
||||
if (diagram()->views().isEmpty()) return 0;
|
||||
QWidget *w = const_cast<QGraphicsView *>(diagram() -> views().at(0));
|
||||
while (w -> parentWidget() && !w -> isWindow()) {
|
||||
w = w -> parentWidget();
|
||||
|
||||
Reference in New Issue
Block a user