diff options
| author | Anton <anton@picapica> | 2016-08-13 22:08:45 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2016-08-13 22:08:45 +0400 |
| commit | b7039a6f5a1cf84b40b16a12b5b97a34c27c9604 (patch) | |
| tree | 167db89babcacc4574260acff3b8af81d4633cf1 | |
| parent | dc932321943129297cd9b32184134b86fb72aa37 (diff) | |
| download | pica-pica-b7039a6f5a1cf84b40b16a12b5b97a34c27c9604.tar.gz pica-pica-b7039a6f5a1cf84b40b16a12b5b97a34c27c9604.zip | |
fixed notification() calls
| -rw-r--r-- | pica-client/filetransfercontroller.cpp | 6 | ||||
| -rw-r--r-- | pica-client/msguirouter.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pica-client/filetransfercontroller.cpp b/pica-client/filetransfercontroller.cpp index 87c1c3f..44dba15 100644 --- a/pica-client/filetransfercontroller.cpp +++ b/pica-client/filetransfercontroller.cpp @@ -217,7 +217,7 @@ void FileTransferController::send_file(QByteArray peer_id) if (ftdialogs_out.contains(peer_id)) { - msguirouter->notification(tr("There is already file transfer in progress. Wait until it is finished.")); + msguirouter->notification(tr("There is already file transfer in progress. Wait until it is finished."), true); return; } @@ -230,13 +230,13 @@ void FileTransferController::send_file(QByteArray peer_id) if (!fi.exists()) { - msguirouter->notification(tr("File \"%1\" does not exist.").arg(filepath)); + msguirouter->notification(tr("File \"%1\" does not exist.").arg(filepath), true); return; } if (fi.size() == 0) { - msguirouter->notification(tr("Cannot send empty file.")); + msguirouter->notification(tr("Cannot send empty file."), true); } skynet->SendFile(peer_id, filepath); diff --git a/pica-client/msguirouter.h b/pica-client/msguirouter.h index 9fb404c..aefef2c 100644 --- a/pica-client/msguirouter.h +++ b/pica-client/msguirouter.h @@ -27,7 +27,7 @@ public slots: void delivered(QByteArray to); void scary_cert_message(QByteArray peer_id, QString received_cert, QString stored_cert); - void notification(QString text); + void notification(QString text, bool is_critical); void trayicon_dclick(); private: |
