|
Thorbjørn Lindeijer skrev: I tried it again today and I have the same results as before. My system is Win XP SP3. I updated and built creator from git repo this morning.ext Eirik Ulvik wrote: I have found where the problem is located. The message box i popped up from editormanager.cpp function EditorManager::openEditor at line 1141. I have put in a solution that is located in bookmarkmanager.cpp function BookmarkManager::gotoBookmark(Bookmark* bookmark) at line 488-493. The solution is quite simple, but seems to work. It looks like this:
void BookmarkManager::gotoBookmark(Bookmark* bookmark) { if(QFile::exists(bookmark->filePath())) TextEditor::BaseTextEditor::openEditorAt(bookmark->filePath(), bookmark->lineNumber()); else { QMessageBox no_file_warning; no_file_warning.setWindowTitle(tr("File does not exist")); no_file_warning.setText(tr("Bookmark located in file %1 that does not exist.\nDo you wish to delete the bookmark?").arg(bookmark->fileName())); no_file_warning.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); int ret = no_file_warning.exec(); if(ret == QMessageBox::Ok) this->removeBookmark(bookmark); } }
|
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
