mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:43:27 +02:00
deselect selected file; close dialog after import
This commit is contained in:
parent
daffadbac4
commit
f01c2fb935
1 changed files with 3 additions and 2 deletions
|
@ -100,7 +100,7 @@ _cancelButton(CANCEL_BUTTON_NAME, this) {
|
|||
setOption(QFileDialog::DontUseNativeDialog, true);
|
||||
setFileMode(QFileDialog::ExistingFile);
|
||||
setViewMode(QFileDialog::Detail);
|
||||
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
QString cmdString = ("Command");
|
||||
#else
|
||||
|
@ -127,8 +127,8 @@ ImportDialog::~ImportDialog() {
|
|||
}
|
||||
|
||||
void ImportDialog::import() {
|
||||
_importButton.setDisabled(true);
|
||||
emit accepted();
|
||||
close();
|
||||
}
|
||||
|
||||
void ImportDialog::accept() {
|
||||
|
@ -145,6 +145,7 @@ int ImportDialog::exec() {
|
|||
|
||||
void ImportDialog::reset() {
|
||||
_importButton.setEnabled(false);
|
||||
selectFile(" ");
|
||||
}
|
||||
|
||||
void ImportDialog::saveCurrentFile(QString filename) {
|
||||
|
|
Loading…
Reference in a new issue