mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-01 00:49:58 +01:00
Conductor : formula and text is now two different things.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4799 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -334,7 +334,6 @@ namespace autonum
|
||||
//Add location name to path array
|
||||
while((current_location.parent() != current_location) && (current_location.parent().fileName() != "import"))
|
||||
{
|
||||
qDebug() << "i = " << i << " " << current_location.fileName();
|
||||
i++;
|
||||
path[i]=current_location.fileName();
|
||||
current_location = current_location.parent();
|
||||
|
||||
@@ -191,15 +191,8 @@ void AutoNumberingDockWidget::conductorAutoNumChanged() {
|
||||
void AutoNumberingDockWidget::on_m_conductor_cb_activated(int)
|
||||
{
|
||||
QString current_autonum = ui->m_conductor_cb->currentText();
|
||||
QString current_formula = m_project->conductorAutoNumFormula(current_autonum);
|
||||
|
||||
if (!current_autonum.isEmpty()) {
|
||||
m_project->setConductorAutoNumCurrentFormula(current_formula, current_autonum);
|
||||
}
|
||||
else {
|
||||
m_project->setConductorAutoNumCurrentFormula("","");
|
||||
}
|
||||
|
||||
m_project->setCurrentConductorAutoNum(current_autonum);
|
||||
m_project_view->currentDiagram()->diagram()->setConductorsAutonumName(current_autonum);
|
||||
m_project_view->currentDiagram()->diagram()->loadCndFolioSeq();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user