projects
/
sdk
/
tools
/
heaptrack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1950a8
)
Return empty QString when no file was available.
author
Milian Wolff
<mail@milianw.de>
Sun, 7 Jun 2015 11:50:16 +0000
(13:50 +0200)
committer
Milian Wolff
<mail@milianw.de>
Sun, 7 Jun 2015 11:50:16 +0000
(13:50 +0200)
Fixes assertion in ModelTest.
gui/model.cpp
patch
|
blob
|
history
diff --git
a/gui/model.cpp
b/gui/model.cpp
index
57d353b
..
090d287
100644
(file)
--- a/
gui/model.cpp
+++ b/
gui/model.cpp
@@
-189,6
+189,8
@@
QVariant Model::allocationData(const AllocationData& allocation, const IpIndex&
} else if (ip.fileIndex) {
auto file = QString::fromStdString(m_data.stringify(ip.fileIndex));
return file + QLatin1Char(':') + QString::number(ip.line);
+ } else {
+ return QString();
}
break;
}