Browse Source

Fixed problem with access to tdewallet caused by commit 6ec26d85.

This resolves issue #11

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/14/head
Emanoil Kotsev 6 months ago
parent
commit
cfb7075fa2
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tdeio/misc/tdewalletd/tdewalletd.cpp

+ 1
- 1
tdeio/misc/tdewalletd/tdewalletd.cpp View File

@@ -477,7 +477,7 @@ int TDEWalletD::internalOpen(const TQCString& appid, const TQString& wallet, boo
477 477
 			setupDialog( kpd, w, appid, modal );
478 478
 			if (kpd->exec() == KDialog::Accepted) {
479 479
 				p = kpd->password().utf8();
480
-				int rc = b->open(TQByteArray().duplicate(p));
480
+				int rc = b->open(TQByteArray().duplicate(p, p.length()));
481 481
 				if (!b->isOpen()) {
482 482
 					kpd->setPrompt(i18n("<qt>Error opening the wallet '<b>%1</b>'. Please try again.<br>(Error code %2: %3)").arg(TQStyleSheet::escape(wallet)).arg(rc).arg(TDEWallet::Backend::openRCToString(rc)));
483 483
 					kpd->clearPassword();

Loading…
Cancel
Save