mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +00:00
ark: use proper type for the return value of Kerfuffle::ExtractionDialog::destinationDirectory()
otherwise there are QString to KUrl to QString conversions Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9b438b75d9
commit
ddcd646ea0
4 changed files with 5 additions and 5 deletions
|
@ -278,7 +278,7 @@ bool BatchExtract::showExtractDialog()
|
|||
}
|
||||
|
||||
setAutoSubfolder(dialog.data()->autoSubfolders());
|
||||
setDestinationFolder(dialog.data()->destinationDirectory().pathOrUrl());
|
||||
setDestinationFolder(dialog.data()->destinationDirectory());
|
||||
setOpenDestinationAfterExtraction(dialog.data()->openDestinationAfterExtraction());
|
||||
setPreservePaths(dialog.data()->preservePaths());
|
||||
|
||||
|
|
|
@ -216,11 +216,11 @@ bool ExtractionDialog::closeAfterExtraction() const
|
|||
return m_ui->closeAfterExtraction->isChecked();
|
||||
}
|
||||
|
||||
KUrl ExtractionDialog::destinationDirectory() const
|
||||
QString ExtractionDialog::destinationDirectory() const
|
||||
{
|
||||
const KUrl selected = selectedUrl();
|
||||
if (extractToSubfolder()) {
|
||||
return QString(selected.pathOrUrl(KUrl::AddTrailingSlash) + subfolder() + QLatin1Char( '/' ));
|
||||
return selected.pathOrUrl(KUrl::AddTrailingSlash) + subfolder() + QLatin1Char( '/' );
|
||||
}
|
||||
return selected.pathOrUrl(KUrl::AddTrailingSlash);
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
bool extractToSubfolder() const;
|
||||
bool autoSubfolders() const;
|
||||
bool preservePaths() const;
|
||||
KUrl destinationDirectory() const;
|
||||
QString destinationDirectory() const;
|
||||
QString subfolder() const;
|
||||
virtual void accept();
|
||||
|
||||
|
|
|
@ -693,7 +693,7 @@ void Part::slotExtractFiles()
|
|||
|
||||
options[QLatin1String("FollowExtractionDialogSettings")] = true;
|
||||
|
||||
const QString destinationDirectory = dialog.data()->destinationDirectory().pathOrUrl();
|
||||
const QString destinationDirectory = dialog.data()->destinationDirectory();
|
||||
ExtractJob *job = m_model->extractFiles(files, destinationDirectory, options);
|
||||
registerJob(job);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue