texteditor: return information on whether openEditor actually created an

editor or re-used an existing one
This commit is contained in:
hjk
2010-03-10 12:48:53 +01:00
parent f7e0366d65
commit 944b6dad7d
5 changed files with 24 additions and 12 deletions

View File

@@ -1199,7 +1199,8 @@ void DebuggerPlugin::resetLocation()
void DebuggerPlugin::gotoLocation(const QString &file, int line, bool setMarker)
{
TextEditor::BaseTextEditor::openEditorAt(file, line);
bool newEditor = false;
TextEditor::BaseTextEditor::openEditorAt(file, line, 0, QString(), &newEditor);
if (setMarker) {
resetLocation();
m_locationMark = new LocationMark(file, line);