summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpppreprocessor.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-06-24 14:52:24 -0700
committerEike Ziller <eike.ziller@digia.com>2013-07-01 10:33:44 +0200
commit11da2fdc247d8960e6bd27b2a80d740a8cb452c7 (patch)
tree02a79647734a3baf8e70dbe5c162c543064e36fa /src/plugins/cpptools/cpppreprocessor.cpp
parent924115d735df538c5c454c1f7d11345e2eb34aaf (diff)
downloadqt-creator-11da2fdc247d8960e6bd27b2a80d740a8cb452c7.tar.gz
Don't accept a column/line number selection just because of ":"
If you had typed "filename.cpp:142" in the Locator field, Creator would offer "Column 142" the first option. At the very least, that's confusing because the user intended to select line 142, not column -- for a while I thought someone had typed the wrong word in the source code. But even worse, this selection was the first entry, so instead of jumping to filename.cpp on line 142, the user ended up still on the same file and line, but on a different column. Instead, simply validate that the parts before and after the colon are actually numbers. Change-Id: I1f1fbd33d702ae26c41fd2485aa99fae800e1410 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpppreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions