diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-08-19 15:38:04 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2016-09-08 12:03:22 -0400 |
commit | 531214fb100c14e62921085cd68cabe2b20ee0eb (patch) | |
tree | e670b843a76489a8928a24795cb624e159da9dfb /src/qt/guiutil.cpp | |
parent | ddc308068d69c6c9aa629ee3c4ce75e1d1cf08b5 (diff) |
gui: add NodeID to the peer table
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index c00f5e8591..444e35de8a 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -291,17 +291,17 @@ void copyEntryData(QAbstractItemView *view, int column, int role) } } -QString getEntryData(QAbstractItemView *view, int column, int role) +QVariant getEntryData(QAbstractItemView *view, int column, int role) { if(!view || !view->selectionModel()) - return QString(); + return QVariant(); QModelIndexList selection = view->selectionModel()->selectedRows(column); if(!selection.isEmpty()) { // Return first item - return (selection.at(0).data(role).toString()); + return (selection.at(0).data(role)); } - return QString(); + return QVariant(); } QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, |