Changeset View
Changeset View
Standalone View
Standalone View
src/backtracewidget.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 45 | { | |||
---|---|---|---|---|---|
71 | connect(ui.m_reloadBacktraceButton, &QPushButton::clicked, this, &BacktraceWidget::regenerateBacktrace); | 71 | connect(ui.m_reloadBacktraceButton, &QPushButton::clicked, this, &BacktraceWidget::regenerateBacktrace); | ||
72 | 72 | | |||
73 | KGuiItem::assign(ui.m_installDebugButton, | 73 | KGuiItem::assign(ui.m_installDebugButton, | ||
74 | KGuiItem2(i18nc("@action:button", "&Install Debug Symbols"), | 74 | KGuiItem2(i18nc("@action:button", "&Install Debug Symbols"), | ||
75 | QIcon::fromTheme(QStringLiteral("system-software-update")), i18nc("@info:tooltip", "Use this button to " | 75 | QIcon::fromTheme(QStringLiteral("system-software-update")), i18nc("@info:tooltip", "Use this button to " | ||
76 | "install the missing debug symbols packages."))); | 76 | "install the missing debug symbols packages."))); | ||
77 | ui.m_installDebugButton->setVisible(false); | 77 | ui.m_installDebugButton->setVisible(false); | ||
78 | connect(ui.m_installDebugButton, &QPushButton::clicked, this, &BacktraceWidget::installDebugPackages); | 78 | connect(ui.m_installDebugButton, &QPushButton::clicked, this, &BacktraceWidget::installDebugPackages); | ||
79 | if (DrKonqi::crashedApplication()->hasDeletedFiles()) { | ||||
80 | ui.m_installDebugButton->setEnabled(false); | ||||
81 | ui.m_installDebugButton->setToolTip(i18nc("@info:tooltip", | ||||
82 | "Symbol installation is unavailable because the application " | ||||
83 | "was updated or uninstalled after it had been started.")); | ||||
84 | } | ||||
79 | 85 | | |||
80 | KGuiItem::assign(ui.m_copyButton, KGuiItem2(QString(), QIcon::fromTheme(QStringLiteral("edit-copy")), | 86 | KGuiItem::assign(ui.m_copyButton, KGuiItem2(QString(), QIcon::fromTheme(QStringLiteral("edit-copy")), | ||
81 | i18nc("@info:tooltip", "Use this button to copy the " | 87 | i18nc("@info:tooltip", "Use this button to copy the " | ||
82 | "crash information (backtrace) to the clipboard."))); | 88 | "crash information (backtrace) to the clipboard."))); | ||
83 | connect(ui.m_copyButton, &QPushButton::clicked, this, &BacktraceWidget::copyClicked); | 89 | connect(ui.m_copyButton, &QPushButton::clicked, this, &BacktraceWidget::copyClicked); | ||
84 | ui.m_copyButton->setEnabled(false); | 90 | ui.m_copyButton->setEnabled(false); | ||
85 | 91 | | |||
86 | KGuiItem::assign(ui.m_saveButton, KGuiItem2(QString(), | 92 | KGuiItem::assign(ui.m_saveButton, KGuiItem2(QString(), | ||
▲ Show 20 Lines • Show All 323 Lines • Show Last 20 Lines |