fix some crash

This commit is contained in:
Martin Rotter 2021-11-16 11:45:28 +01:00
parent 9d8742135a
commit ed6db54cff
3 changed files with 3 additions and 2 deletions

View File

@ -671,6 +671,7 @@ void FormMain::saveSize() {
settings->setValue(GROUP(GUI), GUI::MainWindowStartsMaximized, is_maximized);
settings->setValue(GROUP(GUI), GUI::MainWindowStartsFullscreen, is_fullscreen);
settings->setValue(GROUP(GUI), GUI::StatusBarVisible, m_ui->m_actionSwitchStatusBar->isChecked());
m_ui->m_tabWidget->feedMessageViewer()->saveSize();
}

View File

@ -219,7 +219,7 @@ void WebBrowser::initializeLayout() {
m_actionBack->setIcon(qApp->icons()->fromTheme(QSL("go-previous")));
m_actionForward->setIcon(qApp->icons()->fromTheme(QSL("go-next")));
m_actionReload->setIcon(qApp->icons()->fromTheme(QSL("reload")));
m_actionReload->setIcon(qApp->icons()->fromTheme(QSL("reload"), QSL("view-refresh")));
m_actionStop->setIcon(qApp->icons()->fromTheme(QSL("process-stop")));
QWidgetAction* act_discover = new QWidgetAction(this);

View File

@ -159,7 +159,7 @@ QString DownloadItem::saveFileName(const QString& directory) const {
QString base_name = info.completeBaseName();
QString end_name = info.suffix();
if (base_name.isEmpty()) {
if (base_name.isEmpty() || base_name.contains(QRegularExpression(QSL("\\/|<|\\?")))) {
base_name = QSL("unnamed_download");
}