diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2014-08-17 17:42:26 +0200 |
---|---|---|
committer | Anne Jan Brouwer <ajbrouwer@totalactivemedia.nl> | 2014-08-17 17:42:26 +0200 |
commit | 555fee26e81c46d4fcba7200069d3724f86b6aaa (patch) | |
tree | c4eb201aec39fd38a4e5a39e09690efc581f387b | |
parent | fe33772c8c5a975ece8be74e6a1271fafd7b4801 (diff) |
can't connect to QtPass for some reason.. added auto open via command (dmenu like)
-rw-r--r-- | main.cpp | 4 | ||||
-rw-r--r-- | mainwindow.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -4,7 +4,7 @@ int main(int argc, char *argv[]) { - SingleApplication app(argc, argv, "QtPass"); + SingleApplication app(argc, argv, "ijhackQtPass"); if (app.isRunning()) { if (argc == 1 ) { app.sendMessage("show"); @@ -12,7 +12,7 @@ int main(int argc, char *argv[]) QString text = ""; for (int i = 1; i < argc; ++i) { text += argv[i]; - if (argc >= (i -1)) { + if (argc >= (i - 2)) { text += " "; } app.sendMessage(text); diff --git a/mainwindow.cpp b/mainwindow.cpp index 4629a245..fc49ee77 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -425,7 +425,9 @@ void MainWindow::messageAvailable(QString message) ui->lineEdit->selectAll(); ui->lineEdit->setFocus(); } else { - ui->statusBar->showMessage(message, 3000); + ui->treeView->expandAll(); + ui->lineEdit->setText(message); + on_lineEdit_returnPressed(); } show(); raise(); |