kopia lustrzana https://gitlab.com/eliggett/wfview
Fixed termbin button issue when connection fails. Cleaned up some
logging.half-duplex
rodzic
8d3406a8ae
commit
093e6e799c
|
@ -84,10 +84,11 @@ void loggingWindow::handleDataFromLoggingHost()
|
||||||
{
|
{
|
||||||
clipboard->setText(URL);
|
clipboard->setText(URL);
|
||||||
qInfo(logLogger()) << "Sent log to URL: " << URL;
|
qInfo(logLogger()) << "Sent log to URL: " << URL;
|
||||||
|
qInfo(logLogger()) << "This address already copied to the clipboard. Please paste this URL in to your support questions.";
|
||||||
URLmsgBox.setText("Your log has been posted, and the URL has been copied to the clipboard.");
|
URLmsgBox.setText("Your log has been posted, and the URL has been copied to the clipboard.");
|
||||||
URLmsgBox.setInformativeText("<b>" + URL + "</b>");
|
URLmsgBox.setInformativeText("<b>" + URL + "</b>");
|
||||||
URLmsgBox.exec();
|
URLmsgBox.exec();
|
||||||
// For whatever reason, showing the message box hides this window.
|
// For whatever reason, showing the message box hides https://termbin.com/ypxbthis window.
|
||||||
this->show();
|
this->show();
|
||||||
this->raise();
|
this->raise();
|
||||||
this->activateWindow();
|
this->activateWindow();
|
||||||
|
@ -124,6 +125,7 @@ void loggingWindow::handleLoggingHostError(QAbstractSocket::SocketError error)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
qWarning(logLogger()) << "Error connecting to logging host. Check internet connection. Error code: " << error;
|
qWarning(logLogger()) << "Error connecting to logging host. Check internet connection. Error code: " << error;
|
||||||
|
ui->sendToPasteBtn->setDisabled(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ QLedLabel::QLedLabel(QWidget* parent) :
|
||||||
|
|
||||||
void QLedLabel::setState(State state)
|
void QLedLabel::setState(State state)
|
||||||
{
|
{
|
||||||
qInfo() << "setState" << state;
|
qDebug() << "LED: setState" << state;
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case StateOk:
|
case StateOk:
|
||||||
setStyleSheet(greenSS);
|
setStyleSheet(greenSS);
|
||||||
|
|
|
@ -31,7 +31,7 @@ wfmain::wfmain(const QString settingsFile, const QString logFile, bool debugMode
|
||||||
setWindowIcon(QIcon( QString(":resources/wfview.png")));
|
setWindowIcon(QIcon( QString(":resources/wfview.png")));
|
||||||
this->debugMode = debugMode;
|
this->debugMode = debugMode;
|
||||||
debugModeLogging = debugMode;
|
debugModeLogging = debugMode;
|
||||||
version = QString("wfview version: %1 (Git:%2 on %3 at %4 by %5@%6)\nOperating System: %7 (%8)\nBuild Qt Version %9. Current Qt Version: %10\n")
|
version = QString("wfview version: %1 (Git:%2 on %3 at %4 by %5@%6). Operating System: %7 (%8). Build Qt Version %9. Current Qt Version: %10")
|
||||||
.arg(QString(WFVIEW_VERSION))
|
.arg(QString(WFVIEW_VERSION))
|
||||||
.arg(GITSHORT).arg(__DATE__).arg(__TIME__).arg(UNAME).arg(HOST)
|
.arg(GITSHORT).arg(__DATE__).arg(__TIME__).arg(UNAME).arg(HOST)
|
||||||
.arg(QSysInfo::prettyProductName()).arg(QSysInfo::buildCpuArchitecture())
|
.arg(QSysInfo::prettyProductName()).arg(QSysInfo::buildCpuArchitecture())
|
||||||
|
|
Ładowanie…
Reference in New Issue