summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-12-02 21:31:58 +0900
committerMichele Calgaro <[email protected]>2018-12-02 21:31:58 +0900
commitf2b042c804e448d0f3d35579de32bd3134733c54 (patch)
tree4b6c2494d3946be3ecde127d01533ad2190c61c3 /filters
parent25c9b225031f0ea7f3f4cd44cd14256b91bf0bc2 (diff)
downloadkoffice-f2b042c804e448d0f3d35579de32bd3134733c54.tar.gz
koffice-f2b042c804e448d0f3d35579de32bd3134733c54.zip
Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'filters')
-rw-r--r--filters/chalk/pdf/kis_pdf_import.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/filters/chalk/pdf/kis_pdf_import.cpp b/filters/chalk/pdf/kis_pdf_import.cpp
index 6d668f4a..efcc4ad6 100644
--- a/filters/chalk/pdf/kis_pdf_import.cpp
+++ b/filters/chalk/pdf/kis_pdf_import.cpp
@@ -97,11 +97,11 @@ KisPDFImport::ConversionStatus KisPDFImport::convert(const TQCString& , const TQ
while( pdoc->isLocked() )
{
- TQCString password;
+ TQString password;
int result = KPasswordDialog::getPassword(password, i18n("A password is required to read that pdf"));
if (result == KPasswordDialog::Accepted)
{
- pdoc->unlock(password);
+ pdoc->unlock(password.utf8());
} else {
kdDebug(41008) << "Password canceled" << endl;
return KoFilter::StorageCreationError;