From 5954a0b62785b7af56a76c0773cd65d9b8d93221 Mon Sep 17 00:00:00 2001 From: cfdev Date: Tue, 19 Nov 2013 17:39:55 +0000 Subject: [PATCH] Update of terminal class compatibility git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2626 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/terminal.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sources/terminal.cpp b/sources/terminal.cpp index c2bd9b735..cb21488cb 100644 --- a/sources/terminal.cpp +++ b/sources/terminal.cpp @@ -494,7 +494,6 @@ bool Terminal::valideXml(QDomElement &terminal) { if (!terminal.hasAttribute("x")) return(false); if (!terminal.hasAttribute("y")) return(false); if (!terminal.hasAttribute("orientation")) return(false); - if (!terminal.hasAttribute("number")) return(false); bool conv_ok; // parse l'abscisse @@ -527,8 +526,7 @@ bool Terminal::fromXml(QDomElement &terminal) { return ( qFuzzyCompare(terminal.attribute("x").toDouble(), dock_elmt_.x()) && qFuzzyCompare(terminal.attribute("y").toDouble(), dock_elmt_.y()) && - terminal.attribute("orientation").toInt() == ori_ && - terminal.attribute("number") == number_terminal_ + terminal.attribute("orientation").toInt() == ori_ ); }