Browse Source

Fix slow startup on some rare cases

see https://bugreports.qt.io/browse/QTBUG-3033
tags/1.9.6
falkTX 10 years ago
parent
commit
6f3b750acb
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      source/carla_host.py

+ 5
- 1
source/carla_host.py View File

@@ -134,7 +134,7 @@ class HostWindow(QMainWindow):
# Internal stuff (patchbay)

self.fExportImage = QImage()
self.fExportPrinter = QPrinter()
self.fExportPrinter = None

self.fPeaksCleared = True

@@ -987,6 +987,10 @@ class HostWindow(QMainWindow):
@pyqtSlot()
def slot_canvasPrint(self):
self.scene.clearSelection()

if self.fExportPrinter is None:
self.fExportPrinter = QPrinter()

dialog = QPrintDialog(self.fExportPrinter, self)

if dialog.exec_():


Loading…
Cancel
Save