mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Bug fix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5139 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -216,7 +216,10 @@ PotentialSelectorDialog::~PotentialSelectorDialog()
|
||||
void PotentialSelectorDialog::buildWidget()
|
||||
{
|
||||
QString text1(tr("%n conducteurs composent le potentiel suivant :", "", m_potential_selector->m_conductor_number_1));
|
||||
ConductorProperties cp1 = m_potential_selector->m_properties_list_1.first();
|
||||
|
||||
ConductorProperties cp1;
|
||||
if(!m_potential_selector->m_properties_list_1.isEmpty())
|
||||
cp1 = m_potential_selector->m_properties_list_1.first();;
|
||||
|
||||
if(!cp1.text.isEmpty())
|
||||
text1.append(tr("\nNuméro : %1").arg(cp1.text));
|
||||
@@ -226,7 +229,10 @@ void PotentialSelectorDialog::buildWidget()
|
||||
text1.append(tr("\nTension/protocole : %1").arg(cp1.m_tension_protocol));
|
||||
|
||||
QString text2(tr("%n conducteurs composent le potentiel suivant :", "", m_potential_selector->m_conductor_number_2));
|
||||
ConductorProperties cp2 = m_potential_selector->m_properties_list_2.first();
|
||||
ConductorProperties cp2;
|
||||
if(!m_potential_selector->m_properties_list_2.isEmpty())
|
||||
cp2 = m_potential_selector->m_properties_list_2.first();
|
||||
|
||||
if(!cp2.text.isEmpty())
|
||||
text2.append(tr("\nNuméro : %1").arg(cp2.text));
|
||||
if(!cp2.m_function.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user