MCPcopy Create free account
hub / github.com/actuallyaridan/linux-devmgmt / showOpError

Function showOpError

src/model/DeviceOps.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <QTextStream>
8
9static void showOpError(QWidget *parent, const QString &title,
10 bool timedOut, const QByteArray &stderr) {
11 QString detail = timedOut
12 ? "Operation timed out."
13 : QString::fromUtf8(stderr).trimmed();
14 QMessageBox::warning(parent, title,
15 QString("Operation failed:\n\n%1").arg(detail.toHtmlEscaped()));
16}
17
18bool setModuleBlacklisted(const QString &driver, bool blacklist, QWidget *parent) {
19 const QString opName = blacklist ? "disable" : "enable";

Callers 2

setModuleBlacklistedFunction · 0.85
dkmsRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected