|
|
|
@ -590,7 +590,7 @@ int TQDialog::exec()
|
|
|
|
|
{
|
|
|
|
|
case TQFileDialog::Directory:
|
|
|
|
|
case TQFileDialog::DirectoryOnly:
|
|
|
|
|
dir=TQFileDialog::getExistingDirectory(initialDir, tqparentWidget(), NULL,
|
|
|
|
|
dir=TQFileDialog::getExistingDirectory(initialDir, parentWidget(), NULL,
|
|
|
|
|
caption(), true, true);
|
|
|
|
|
|
|
|
|
|
if(!dir.isEmpty())
|
|
|
|
@ -607,7 +607,7 @@ int TQDialog::exec()
|
|
|
|
|
file=TQFileDialog::getSaveFileName(initialDir,
|
|
|
|
|
getFilters(that, "scribus"==app ||
|
|
|
|
|
"scribus-ng"==app),
|
|
|
|
|
tqparentWidget(), NULL, caption(), &selectedFilter,
|
|
|
|
|
parentWidget(), NULL, caption(), &selectedFilter,
|
|
|
|
|
true);
|
|
|
|
|
|
|
|
|
|
if(!file.isEmpty())
|
|
|
|
@ -615,14 +615,14 @@ int TQDialog::exec()
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case TQFileDialog::ExistingFile:
|
|
|
|
|
file=TQFileDialog::getOpenFileName(initialDir, getFilters(that), tqparentWidget(),
|
|
|
|
|
file=TQFileDialog::getOpenFileName(initialDir, getFilters(that), parentWidget(),
|
|
|
|
|
NULL, caption(), &selectedFilter, true);
|
|
|
|
|
|
|
|
|
|
if(!file.isEmpty())
|
|
|
|
|
res=TQDialog::Accepted;
|
|
|
|
|
break;
|
|
|
|
|
case TQFileDialog::ExistingFiles:
|
|
|
|
|
files=TQFileDialog::getOpenFileNames(getFilters(that), initialDir, tqparentWidget(),
|
|
|
|
|
files=TQFileDialog::getOpenFileNames(getFilters(that), initialDir, parentWidget(),
|
|
|
|
|
NULL, caption(), &selectedFilter, true);
|
|
|
|
|
|
|
|
|
|
if(files.count())
|
|
|
|
|