mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-31 01:24:49 +01:00
Fixed #142.
This commit is contained in:
parent
cad7219ea2
commit
f64d6d1694
@ -3,6 +3,7 @@
|
||||
|
||||
Added:
|
||||
▪ Added generic "Add new feed" action, which can be accessed via "Feeds & messages" menu. (issue #146)
|
||||
▪ Added support for import/export to/from plain TXT file (one feed URL per line). (issue #142)
|
||||
|
||||
Changed:
|
||||
▪ Some GUI refinements and fixes.
|
||||
|
@ -58,6 +58,7 @@ FormStandardImportExport::~FormStandardImportExport() {
|
||||
|
||||
void FormStandardImportExport::setMode(const FeedsImportExportModel::Mode &mode) {
|
||||
m_model->setMode(mode);
|
||||
m_ui->m_progressBar->setVisible(false);
|
||||
|
||||
switch (mode) {
|
||||
case FeedsImportExportModel::Export: {
|
||||
@ -107,16 +108,16 @@ void FormStandardImportExport::selectFile() {
|
||||
void FormStandardImportExport::onParsingStarted() {
|
||||
m_ui->m_lblResult->setStatus(WidgetWithStatus::Progress, tr("Parsing data..."), tr("Parsing data..."));
|
||||
m_ui->m_btnSelectFile->setEnabled(false);
|
||||
m_ui->m_progressBar->setEnabled(true);
|
||||
m_ui->m_progressBar->setValue(0);
|
||||
m_ui->m_progressBar->setVisible(true);
|
||||
}
|
||||
|
||||
void FormStandardImportExport::onParsingFinished(int count_failed, int count_succeeded, bool parsing_error) {
|
||||
Q_UNUSED(count_failed)
|
||||
Q_UNUSED(count_succeeded)
|
||||
|
||||
m_ui->m_progressBar->setVisible(false);
|
||||
m_ui->m_progressBar->setValue(0);
|
||||
m_ui->m_progressBar->setEnabled(false);
|
||||
m_model->checkAllItems();
|
||||
|
||||
if (!parsing_error) {
|
||||
|
@ -116,9 +116,6 @@
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QProgressBar" name="m_progressBar">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>0</number>
|
||||
</property>
|
||||
|
Loading…
x
Reference in New Issue
Block a user