mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-28 16:20:34 +01:00
fix some crash
This commit is contained in:
parent
9d8742135a
commit
ed6db54cff
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user