Use separate window for viewing logs
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
1aa8d7bc13
commit
e4a801fdf7
8 changed files with 94 additions and 16 deletions
|
@ -231,7 +231,8 @@ void OtherLogsPage::on_btnReload_clicked()
|
|||
if (!m_model)
|
||||
return;
|
||||
m_model->clear();
|
||||
m_container->refreshContainer();
|
||||
if (m_container)
|
||||
m_container->refreshContainer();
|
||||
} else {
|
||||
reload();
|
||||
}
|
||||
|
@ -358,7 +359,8 @@ void OtherLogsPage::reload()
|
|||
|
||||
void OtherLogsPage::on_btnPaste_clicked()
|
||||
{
|
||||
GuiUtil::uploadPaste(m_currentFile, ui->text->toPlainText(), this);
|
||||
QString name = m_currentFile.isEmpty() ? displayName() : m_currentFile;
|
||||
GuiUtil::uploadPaste(name, ui->text->toPlainText(), this);
|
||||
}
|
||||
|
||||
void OtherLogsPage::on_btnCopy_clicked()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue