Commit 6d9e87ed authored by Langella Olivier's avatar Langella Olivier
Browse files

fix boolean context problem

parent 57cadb2d
......@@ -33,8 +33,7 @@
#include "../utils/groupstore.h"
#include "../grouping/groupinggroup.h"
#ifndef PROTEINMATCH_H
#define PROTEINMATCH_H
#pragma once
class IdentificationGroup;
......@@ -222,5 +221,3 @@ class ProteinMatch
*/
bool _proxy_valid = false;
};
#endif // PROTEINMATCH_H
......@@ -104,22 +104,15 @@ PeptideListWindow::PeptideListWindow(ProjectWindow *parent)
QSettings settings;
bool hide = settings.value("peptideview/hidenotvalid", "true").toBool();
if(hide)
{
ui->actionValid_peptides->setChecked(Qt::Checked);
}
ui->actionValid_peptides->setChecked(hide);
_p_proxy_model->hideNotValid(hide);
hide = settings.value("peptideview/hidenotchecked", "false").toBool();
if(hide)
{
ui->actionChecked_peptides->setChecked(Qt::Checked);
}
ui->actionChecked_peptides->setChecked(hide);
_p_proxy_model->hideNotChecked(hide);
hide = settings.value("peptideview/hidenotgrouped", "false").toBool();
if(hide)
{
ui->actionGrouped_peptides->setChecked(Qt::Checked);
}
ui->actionGrouped_peptides->setChecked(hide);
_p_proxy_model->hideNotGrouped(hide);
ui->scan_number_edit->setVisible(false);
......
......@@ -94,22 +94,13 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent)
QSettings settings;
bool hide = settings.value("proteinview/hidenotvalid", "true").toBool();
if(hide)
{
ui->actionValid_proteins->setChecked(Qt::Checked);
}
ui->actionValid_proteins->setChecked(hide);
_p_proxy_model->hideNotValid(hide);
hide = settings.value("proteinview/hidenotchecked", "false").toBool();
if(hide)
{
ui->actionChecked_proteins->setChecked(Qt::Checked);
}
ui->actionChecked_proteins->setChecked(hide);
_p_proxy_model->hideNotChecked(hide);
hide = settings.value("proteinview/hidenotgrouped", "false").toBool();
if(hide)
{
ui->actionGrouped_proteins->setChecked(Qt::Checked);
}
ui->actionGrouped_proteins->setChecked(hide);
_p_proxy_model->hideNotGrouped(hide);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment