diff options
| author | practicalswift <[email protected]> | 2017-06-04 22:45:22 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-06-05 00:52:36 +0200 |
| commit | 90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb (patch) | |
| tree | 1f830a3679ef00b774dc8ac6b216366f2ed52a68 /src/qt/recentrequeststablemodel.cpp | |
| parent | Merge #10447: Make bitcoind invalid argument error message specific (diff) | |
| download | discoin-90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb.tar.xz discoin-90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb.zip | |
Limit variable scope
Diffstat (limited to 'src/qt/recentrequeststablemodel.cpp')
| -rw-r--r-- | src/qt/recentrequeststablemodel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt/recentrequeststablemodel.cpp b/src/qt/recentrequeststablemodel.cpp index dac397929..e4c857e40 100644 --- a/src/qt/recentrequeststablemodel.cpp +++ b/src/qt/recentrequeststablemodel.cpp @@ -55,10 +55,9 @@ QVariant RecentRequestsTableModel::data(const QModelIndex &index, int role) cons if(!index.isValid() || index.row() >= list.length()) return QVariant(); - const RecentRequestEntry *rec = &list[index.row()]; - if(role == Qt::DisplayRole || role == Qt::EditRole) { + const RecentRequestEntry *rec = &list[index.row()]; switch(index.column()) { case Date: |