[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:14:27 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=9170e58

The following commit has been merged in the master branch:
commit 9170e58d9ad8b0a66aae31556e1e468a2555a801
Author: mayank jha <mjnovice at gmail.com>
Date:   Tue Mar 18 16:30:32 2014 +0100

    Renames the "Open" button of KFileDialog to "Send"
    
    REVIEW: 116556
    BUG: 331533
---
 contact-list-widget.cpp | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/contact-list-widget.cpp b/contact-list-widget.cpp
index 6f92a72..e59fff0 100644
--- a/contact-list-widget.cpp
+++ b/contact-list-widget.cpp
@@ -43,6 +43,7 @@
 #include <KSettings/Dialog>
 #include <KMenu>
 #include <KNotifyConfigWidget>
+#include <KPushButton>
 
 #include <QHeaderView>
 #include <QLabel>
@@ -495,10 +496,13 @@ void ContactListWidget::startFileTransferChannel(const Tp::AccountPtr &account,
 {
     kDebug() << "Requesting file transfer for contact" << contact->alias();
 
-    QStringList filenames = KFileDialog::getOpenFileNames(KUrl("kfiledialog:///FileTransferLastDirectory"),
-                                                          QString(),
-                                                          this,
-                                                          i18n("Choose files to send to %1", contact->alias()));
+    KFileDialog *fileDialog = new KFileDialog(KUrl("kfiledialog:///FileTransferLastDirectory"), QString(), this);
+    fileDialog->setOperationMode(KFileDialog::Opening);
+    fileDialog->setWindowTitle(i18n("Choose files to send to %1", contact->alias()));
+    fileDialog->okButton()->setText(i18n("Send"));
+    fileDialog->exec();
+    QStringList filenames = fileDialog->selectedFiles();
+    fileDialog->deleteLater();
 
     if (filenames.isEmpty()) { // User hit cancel button
         return;

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list