mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 23:23:52 +00:00
Cleanup signals when finished.
This commit is contained in:
parent
988c8f9ebe
commit
5675626482
1 changed files with 10 additions and 1 deletions
|
@ -115,7 +115,7 @@ void CSVDoc::FileDialog::buildOpenFileView()
|
||||||
connect (mSelector, SIGNAL (signalAddonFileSelected (int)), this, SLOT (slotUpdateAcceptButton (int)));
|
connect (mSelector, SIGNAL (signalAddonFileSelected (int)), this, SLOT (slotUpdateAcceptButton (int)));
|
||||||
connect (mSelector, SIGNAL (signalAddonFileUnselected (int)), this, SLOT (slotUpdateAcceptButton (int)));
|
connect (mSelector, SIGNAL (signalAddonFileUnselected (int)), this, SLOT (slotUpdateAcceptButton (int)));
|
||||||
|
|
||||||
connect (ui.projectButtonBox, SIGNAL (accepted()), this, SLOT (slotOpenFile()), Qt::UniqueConnection);
|
connect (ui.projectButtonBox, SIGNAL (accepted()), this, SLOT (slotOpenFile()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVDoc::FileDialog::slotUpdateAcceptButton (int)
|
void CSVDoc::FileDialog::slotUpdateAcceptButton (int)
|
||||||
|
@ -162,6 +162,11 @@ void CSVDoc::FileDialog::slotRejected()
|
||||||
void CSVDoc::FileDialog::slotNewFile()
|
void CSVDoc::FileDialog::slotNewFile()
|
||||||
{
|
{
|
||||||
emit signalCreateNewFile (mAdjusterWidget->getPath());
|
emit signalCreateNewFile (mAdjusterWidget->getPath());
|
||||||
|
|
||||||
|
mFileWidget->disconnect();
|
||||||
|
mSelector->disconnect();
|
||||||
|
ui.projectButtonBox->disconnect();
|
||||||
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVDoc::FileDialog::slotOpenFile()
|
void CSVDoc::FileDialog::slotOpenFile()
|
||||||
|
@ -171,4 +176,8 @@ void CSVDoc::FileDialog::slotOpenFile()
|
||||||
mAdjusterWidget->setName (file->filePath(), !file->isGameFile());
|
mAdjusterWidget->setName (file->filePath(), !file->isGameFile());
|
||||||
|
|
||||||
emit signalOpenFiles (mAdjusterWidget->getPath());
|
emit signalOpenFiles (mAdjusterWidget->getPath());
|
||||||
|
|
||||||
|
mSelector->disconnect();
|
||||||
|
ui.projectButtonBox->disconnect();
|
||||||
|
close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue