File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,6 @@ UBPersistenceManager::UBPersistenceManager(QObject *pParent)
103
103
mDocumentTreeStructureModel = new UBDocumentTreeModel (this );
104
104
createDocumentProxiesStructure ();
105
105
106
- emit proxyListChanged ();
107
-
108
106
mThread = new QThread;
109
107
mWorker = new UBPersistenceWorker ();
110
108
mWorker ->moveToThread (mThread );
@@ -632,9 +630,7 @@ std::shared_ptr<UBDocumentProxy> UBPersistenceManager::createDocument(const QStr
632
630
} else if (processInteractiveReplacementDialog (doc) == QDialog::Accepted) {
633
631
addDoc = true ;
634
632
}
635
- if (addDoc) {
636
- emit proxyListChanged ();
637
- } else {
633
+ if (!addDoc) {
638
634
deleteDocument (doc);
639
635
doc = 0 ;
640
636
}
@@ -710,7 +706,6 @@ std::shared_ptr<UBDocumentProxy> UBPersistenceManager::createDocumentFromDir(con
710
706
}
711
707
if (addDoc) {
712
708
UBMetadataDcSubsetAdaptor::persist (doc);
713
- emit proxyListChanged ();
714
709
emit documentCreated (doc);
715
710
} else {
716
711
deleteDocument (doc);
@@ -762,8 +757,6 @@ std::shared_ptr<UBDocumentProxy> UBPersistenceManager::duplicateDocument(std::sh
762
757
763
758
copy->setPageCount (sceneCount (copy));
764
759
765
- emit proxyListChanged ();
766
-
767
760
emit documentCreated (copy);
768
761
769
762
return copy;
Original file line number Diff line number Diff line change @@ -158,9 +158,6 @@ class UBPersistenceManager : public QObject
158
158
bool isSceneInCached (std::shared_ptr<UBDocumentProxy>proxy, int index) const ;
159
159
160
160
signals:
161
-
162
- void proxyListChanged ();
163
-
164
161
void documentCreated (std::shared_ptr<UBDocumentProxy> pDocumentProxy);
165
162
void documentMetadataChanged (std::shared_ptr<UBDocumentProxy> pDocumentProxy);
166
163
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ void WBHistoryManager::clear()
274
274
m_fullSave = true ;
275
275
m_saveTimer->changeOccurred ();
276
276
m_saveTimer->saveIfNeccessary ();
277
- historyReset ();
277
+ emit historyReset ();
278
278
}
279
279
280
280
void WBHistoryManager::loadSettings ()
You can’t perform that action at this time.
0 commit comments