add code to open (display) debug.log on Windows with the associated application and add a button to the Information page in the Debug console
This commit is contained in:
@@ -90,6 +90,12 @@ RPCConsole::RPCConsole(QWidget *parent) :
|
||||
ui->messagesWidget->horizontalHeader()->setResizeMode(1, QHeaderView::Stretch);
|
||||
ui->messagesWidget->setContextMenuPolicy(Qt::ActionsContextMenu);
|
||||
|
||||
#ifndef WIN32
|
||||
// Show Debug logfile label and Open button only for Windows
|
||||
ui->labelDebugLogfile->setVisible(false);
|
||||
ui->openDebugLogfileButton->setVisible(false);
|
||||
#endif
|
||||
|
||||
// Install event filter for up and down arrow
|
||||
ui->lineEdit->installEventFilter(this);
|
||||
|
||||
@@ -101,6 +107,7 @@ RPCConsole::RPCConsole(QWidget *parent) :
|
||||
ui->messagesWidget->addAction(copyMessageAction);
|
||||
|
||||
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
|
||||
connect(ui->openDebugLogfileButton, SIGNAL(clicked()), this, SLOT(on_openDebugLogfileButton_clicked()));
|
||||
|
||||
startExecutor();
|
||||
|
||||
@@ -310,3 +317,8 @@ void RPCConsole::on_tabWidget_currentChanged(int index)
|
||||
ui->lineEdit->setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
void RPCConsole::on_openDebugLogfileButton_clicked()
|
||||
{
|
||||
GUIUtil::openDebugLogfile();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user