Changeset View
Changeset View
Standalone View
Standalone View
language/codegen/basicrefactoring.cpp
Show First 20 Lines • Show All 303 Lines • ▼ Show 20 Line(s) | 276 | { | |||
---|---|---|---|---|---|
304 | lock.unlock(); | 304 | lock.unlock(); | ||
305 | 305 | | |||
306 | if (dialog.exec() != QDialog::Accepted) | 306 | if (dialog.exec() != QDialog::Accepted) | ||
307 | return {}; | 307 | return {}; | ||
308 | 308 | | |||
309 | const auto text = renameDialog.edit->text().trimmed(); | 309 | const auto text = renameDialog.edit->text().trimmed(); | ||
310 | RefactoringProgressDialog refactoringProgress(i18n("Renaming \"%1\" to \"%2\"", declarationName, text), collector.data()); | 310 | RefactoringProgressDialog refactoringProgress(i18n("Renaming \"%1\" to \"%2\"", declarationName, text), collector.data()); | ||
311 | if (!collector->isReady()) { | 311 | if (!collector->isReady()) { | ||
312 | refactoringProgress.exec(); | 312 | if (refactoringProgress.exec() != QDialog::Accepted) { // krazy:exclude=crashy | ||
313 | if (refactoringProgress.result() != QDialog::Accepted) { | | |||
314 | return {}; | 313 | return {}; | ||
315 | } | 314 | } | ||
316 | } | 315 | } | ||
317 | 316 | | |||
318 | //TODO: input validation | 317 | //TODO: input validation | ||
319 | return {text,collector}; | 318 | return {text,collector}; | ||
320 | } | 319 | } | ||
321 | 320 | | |||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |