aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-10-09 21:06:28 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-10-09 21:06:28 +0200
commitd934e7e3ddd7d919e58f76705439cdb15c745951 (patch)
tree4628e156de28a924e2e552f48e1db4997f0e15a1
parent8828da5f56313855e19f463ff1c09196812b997b (diff)
Make "Quit" menu saner
- Use 'x' for Exit shortcut - Set Ctrl-Q as global quit key sequence
-rw-r--r--src/qt/bitcoingui.cpp6
-rw-r--r--src/qt/locale/bitcoin_de.ts2
-rw-r--r--src/qt/locale/bitcoin_nl.ts2
-rw-r--r--src/qt/locale/bitcoin_ru.ts2
4 files changed, 5 insertions, 7 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index be10b97c0f..25261c780f 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -65,9 +65,6 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
// Menus
QMenu *file = menuBar()->addMenu(tr("&File"));
- file->addAction(sendCoinsAction);
- file->addAction(receiveCoinsAction);
- file->addSeparator();
file->addAction(quitAction);
QMenu *settings = menuBar()->addMenu(tr("&Settings"));
@@ -197,8 +194,9 @@ void BitcoinGUI::createActions()
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));
- quitAction = new QAction(QIcon(":/icons/quit"), tr("&Exit"), this);
+ quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);
quitAction->setToolTip(tr("Quit application"));
+ quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About"), this);
aboutAction->setToolTip(tr("Show information about Bitcoin"));
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
diff --git a/src/qt/locale/bitcoin_de.ts b/src/qt/locale/bitcoin_de.ts
index ba2e25d62f..c674eb439b 100644
--- a/src/qt/locale/bitcoin_de.ts
+++ b/src/qt/locale/bitcoin_de.ts
@@ -351,7 +351,7 @@ Are you sure you wish to encrypt your wallet?</source>
</message>
<message>
<location filename="../bitcoingui.cpp" line="200"/>
- <source>&amp;Exit</source>
+ <source>E&amp;xit</source>
<translation>Beenden</translation>
</message>
<message>
diff --git a/src/qt/locale/bitcoin_nl.ts b/src/qt/locale/bitcoin_nl.ts
index 9940e90e18..a7ea7e666a 100644
--- a/src/qt/locale/bitcoin_nl.ts
+++ b/src/qt/locale/bitcoin_nl.ts
@@ -372,7 +372,7 @@ Are you sure you wish to encrypt your wallet?</source>
</message>
<message>
<location filename="../bitcoingui.cpp" line="200"/>
- <source>&amp;Exit</source>
+ <source>E&amp;xit</source>
<translation>A&amp;fsluiten</translation>
</message>
<message>
diff --git a/src/qt/locale/bitcoin_ru.ts b/src/qt/locale/bitcoin_ru.ts
index ea32d95607..b6127959fb 100644
--- a/src/qt/locale/bitcoin_ru.ts
+++ b/src/qt/locale/bitcoin_ru.ts
@@ -343,7 +343,7 @@ Are you sure you wish to encrypt your wallet?</source>
</message>
<message>
<location filename="../bitcoingui.cpp" line="200"/>
- <source>&amp;Exit</source>
+ <source>E&amp;xit</source>
<translation>Вы&amp;ход</translation>
</message>
<message>