- fix: Error message when save bookmarks.
This commit is contained in:
parent
61f4b84b13
commit
9275f9750c
|
@ -745,7 +745,13 @@ void Debugger::save(const QString &filename, const QString& projectFolder)
|
|||
foreach (const PWatchVar& watchVar, watchVars) {
|
||||
watchVarCompareSet.insert(watchVar->expression);
|
||||
}
|
||||
std::shared_ptr<DebugConfig> pConfig = load(filename, forProject);
|
||||
std::shared_ptr<DebugConfig> pConfig;
|
||||
try {
|
||||
pConfig = load(filename, forProject);
|
||||
} catch (FileError& e) {
|
||||
|
||||
}
|
||||
|
||||
QFile file(filename);
|
||||
if (file.open(QFile::WriteOnly | QFile::Truncate)) {
|
||||
foreach (const PBreakpoint& breakpoint, pConfig->breakpoints) {
|
||||
|
|
|
@ -226,7 +226,13 @@ void BookmarkModel::save(const QString &filename, const QString& projectFolder)
|
|||
QString key = QString("%1-%2").arg(filename).arg(bookmark->line);
|
||||
compareHash.insert(key,i);
|
||||
}
|
||||
QList<PBookmark> fileBookmarks=load(filename, t,&fileTimestamp);
|
||||
QList<PBookmark> fileBookmarks;
|
||||
try {
|
||||
fileBookmarks=load(filename, t,&fileTimestamp);
|
||||
} catch (FileError& e) {
|
||||
|
||||
}
|
||||
|
||||
QFile file(filename);
|
||||
if (file.open(QFile::WriteOnly | QFile::Truncate)) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue