Changeset View
Changeset View
Standalone View
Standalone View
src/drkonqidialog.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 116 | reportMessage = xi18nc("@info", "<para>As the Crash Handler itself has failed, the " | |||
---|---|---|---|---|---|
123 | DRKONQI_REPORT_BUG_URL); | 123 | DRKONQI_REPORT_BUG_URL); | ||
124 | } else if (DrKonqi::isSafer()) { | 124 | } else if (DrKonqi::isSafer()) { | ||
125 | reportMessage = xi18nc("@info", "<para>The reporting assistant is disabled because " | 125 | reportMessage = xi18nc("@info", "<para>The reporting assistant is disabled because " | ||
126 | "the crash handler dialog was started in safe mode." | 126 | "the crash handler dialog was started in safe mode." | ||
127 | "<nl />You can manually report this bug to %1 " | 127 | "<nl />You can manually report this bug to %1 " | ||
128 | "(including the backtrace from the " | 128 | "(including the backtrace from the " | ||
129 | "<interface>Developer Information</interface> " | 129 | "<interface>Developer Information</interface> " | ||
130 | "tab.)</para>", crashedApp->bugReportAddress()); | 130 | "tab.)</para>", crashedApp->bugReportAddress()); | ||
131 | } else if (crashedApp->hasDeletedFiles()) { | ||||
132 | reportMessage = xi18nc("@info", "<para>The reporting assistant is disabled because " | ||||
133 | "the crashed application appears to have been updated or " | ||||
134 | "uninstalled since it had been started. This prevents accurate " | ||||
135 | "crash reporting and can also be the cause of this crash.</para>" | ||||
136 | "<para>After updating it is always a good idea to log out and back " | ||||
137 | "in to make sure the update is fully applied and will not cause " | ||||
138 | "any side effects.</para>"); | ||||
131 | } else { | 139 | } else { | ||
132 | reportMessage = xi18nc("@info", "<para>You can help us improve KDE Software by reporting " | 140 | reportMessage = xi18nc("@info", "<para>You can help us improve KDE Software by reporting " | ||
133 | "this error.<nl /><link url='%1'>Learn " | 141 | "this error.<nl /><link url='%1'>Learn " | ||
134 | "more about bug reporting.</link></para>", | 142 | "more about bug reporting.</link></para>", | ||
135 | QLatin1String(ABOUT_BUG_REPORTING_URL)); | 143 | QLatin1String(ABOUT_BUG_REPORTING_URL)); | ||
136 | } | 144 | } | ||
137 | } else { | 145 | } else { | ||
138 | reportMessage = xi18nc("@info", "<para>You cannot report this error, because " | 146 | reportMessage = xi18nc("@info", "<para>You cannot report this error, because " | ||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 178 | { | |||
204 | KGuiItem2 reportItem(i18nc("@action:button", "Report &Bug"), | 212 | KGuiItem2 reportItem(i18nc("@action:button", "Report &Bug"), | ||
205 | QIcon::fromTheme(QStringLiteral("tools-report-bug")), | 213 | QIcon::fromTheme(QStringLiteral("tools-report-bug")), | ||
206 | i18nc("@info:tooltip", "Starts the bug report assistant.")); | 214 | i18nc("@info:tooltip", "Starts the bug report assistant.")); | ||
207 | KGuiItem::assign(reportButton, reportItem); | 215 | KGuiItem::assign(reportButton, reportItem); | ||
208 | m_buttonBox->addButton(reportButton, QDialogButtonBox::ActionRole); | 216 | m_buttonBox->addButton(reportButton, QDialogButtonBox::ActionRole); | ||
209 | 217 | | |||
210 | reportButton->setEnabled(!crashedApp->bugReportAddress().isEmpty() && | 218 | reportButton->setEnabled(!crashedApp->bugReportAddress().isEmpty() && | ||
211 | crashedApp->fakeExecutableBaseName() != QLatin1String("drkonqi") && | 219 | crashedApp->fakeExecutableBaseName() != QLatin1String("drkonqi") && | ||
212 | !DrKonqi::isSafer()); | 220 | !DrKonqi::isSafer() && !crashedApp->hasDeletedFiles()); | ||
213 | connect(reportButton, &QPushButton::clicked, this, &DrKonqiDialog::startBugReportAssistant); | 221 | connect(reportButton, &QPushButton::clicked, this, &DrKonqiDialog::startBugReportAssistant); | ||
214 | 222 | | |||
215 | //Restart application button | 223 | //Restart application button | ||
216 | KGuiItem2 restartItem(i18nc("@action:button", "&Restart Application"), | 224 | KGuiItem2 restartItem(i18nc("@action:button", "&Restart Application"), | ||
217 | QIcon::fromTheme(QStringLiteral("system-reboot")), | 225 | QIcon::fromTheme(QStringLiteral("system-reboot")), | ||
218 | i18nc("@info:tooltip", "Use this button to restart " | 226 | i18nc("@info:tooltip", "Use this button to restart " | ||
219 | "the crashed application.")); | 227 | "the crashed application.")); | ||
220 | m_restartButton = new QPushButton(m_buttonBox); | 228 | m_restartButton = new QPushButton(m_buttonBox); | ||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |