aboutsummaryrefslogtreecommitdiff
path: root/notebookmodel.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2020-09-10 23:26:12 +0200
committerJavier <dev.git@javispedro.com>2020-09-10 23:26:12 +0200
commit20de09ffbaa00ab3adf91e49b847eb0061315b1e (patch)
tree19d34e3ed81b86a415809b2d213d582ff524d263 /notebookmodel.cc
parent554a87c601dbd67b45fddc9a8362b82a5b89c5e4 (diff)
downloadscribiu-20de09ffbaa00ab3adf91e49b847eb0061315b1e.tar.gz
scribiu-20de09ffbaa00ab3adf91e49b847eb0061315b1e.zip
cleanup redundant endls and others
Diffstat (limited to 'notebookmodel.cc')
-rw-r--r--notebookmodel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/notebookmodel.cc b/notebookmodel.cc
index b9c897e..8a58ebf 100644
--- a/notebookmodel.cc
+++ b/notebookmodel.cc
@@ -124,7 +124,7 @@ QVariant NotebookModel::data(const QModelIndex &index, int role) const
case Qt::DisplayRole:
switch (index.column()) {
case 0:
- return notebooks.at(index.row());
+ return notebookName;
case 1:
if (notebookName != PAPER_REPLAY) {
return estimatePagesOfNotebook(penName, notebookName);