From 59abcf444e69db740f32c23a9694cee7e467b6cd Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Sat, 3 Jan 2015 15:55:46 +0100 Subject: [PATCH] Sorting the account names in the menu --- README.md | 2 +- src/cutecoin/gui/mainwindow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 448bb64e..5006cbaa 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,6 @@ Qt Client for [Ucoin](http://www.ucoin.io) project. * The executable is generated in "build" folder, named "cutecoin" ### How to download latest release - * Go to the [current release](https://github.com/ucoin-io/cutecoin/releases/tag/0.6) + * Go to the [current release](https://github.com/ucoin-io/cutecoin/releases/tag/0.7) * Download the package corresponding to your operating system * Unzip and start "cutecoin" :) diff --git a/src/cutecoin/gui/mainwindow.py b/src/cutecoin/gui/mainwindow.py index 2c45a5cc..86e7ac07 100644 --- a/src/cutecoin/gui/mainwindow.py +++ b/src/cutecoin/gui/mainwindow.py @@ -129,7 +129,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.menu_change_account.clear() signal_mapper = QSignalMapper(self) - for account_name in self.app.accounts.keys(): + for account_name in sorted(self.app.accounts.keys()): action = QAction(account_name, self) self.menu_change_account.addAction(action) signal_mapper.setMapping(action, account_name) -- GitLab