Package: keepassx
Severity: normal

Hi,

The following micro-patch makes the "copy to clipboard" functions usable in
other desktop environments like XFCE or fluxbox too.  Please consider merging
this in the debian package or forward to upstream.

thanks,

buga


diff -ur orig/keepassx-0.2.2/src/mainwindow.cpp 
keepassx-0.2.2/src/mainwindow.cpp
--- orig/keepassx-0.2.2/src/mainwindow.cpp      2006-06-07 12:54:20.000000000 
+0200
+++ keepassx-0.2.2/src/mainwindow.cpp   2007-03-09 18:15:51.000000000 +0100
@@ -886,6 +886,7 @@
 void KeepassMainWindow::OnEditPasswordToClipboard(){
 currentEntry()->Password.unlock();
 Clipboard->setText(currentEntry()->Password.string(),QClipboard::Clipboard);
+Clipboard->setText(currentEntry()->Password.string(),QClipboard::Selection);
 ClipboardTimer.setSingleShot(true);
 ClipboardTimer.start(config.ClipboardTimeOut*1000);
 currentEntry()->Password.lock();
@@ -894,6 +895,7 @@

 void KeepassMainWindow::OnClipboardTimeOut(){
 Clipboard->clear(QClipboard::Clipboard);
+Clipboard->clear(QClipboard::Selection);
 }

 void KeepassMainWindow::OnEditSaveAttachment(){


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.31
Locale: LANG=C, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to