From a0fdeb5667e5451b4a9c6bc084e51222ae1114d2 Mon Sep 17 00:00:00 2001
From: Olivier Langella <Olivier.Langella@moulon.inra.fr>
Date: Mon, 12 Jun 2017 08:57:15 +0200
Subject: [PATCH] TAIR accession fixed

---
 src/core/proteinxtp.cpp                     |  2 +-
 src/gui/protein_view/protein_detail_view.ui | 12 +++++++++---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/core/proteinxtp.cpp b/src/core/proteinxtp.cpp
index 2f24e43a..0ec15e07 100644
--- a/src/core/proteinxtp.cpp
+++ b/src/core/proteinxtp.cpp
@@ -176,7 +176,7 @@ void ProteinXtp::parseAccession2dbxref() {
         accession = access_list.at(i);
         qDebug() << "ProteinXtp::parseAccession2dbxref accession " << accession;
         if (atg.indexIn(accession, 0) != -1) {
-            QStringList temp = accession.split("\\.");
+            QStringList temp = accession.split(".");
             _dbxref_list.push_back(DbXref(ExternalDatabase::AGI_LocusCode, temp.at(0)));
             continue;
         }
diff --git a/src/gui/protein_view/protein_detail_view.ui b/src/gui/protein_view/protein_detail_view.ui
index 9249c676..f2bf486b 100644
--- a/src/gui/protein_view/protein_detail_view.ui
+++ b/src/gui/protein_view/protein_detail_view.ui
@@ -50,6 +50,12 @@
           <item>
            <widget class="QWidget" name="button_layout" native="true">
             <layout class="QHBoxLayout" name="button_space_layout">
+             <property name="topMargin">
+              <number>0</number>
+             </property>
+             <property name="bottomMargin">
+              <number>0</number>
+             </property>
              <item>
               <layout class="QHBoxLayout" name="dbxref_list_layout"/>
              </item>
@@ -60,8 +66,8 @@
                </property>
                <property name="sizeHint" stdset="0">
                 <size>
-                 <width>40</width>
-                 <height>20</height>
+                 <width>0</width>
+                 <height>0</height>
                 </size>
                </property>
               </spacer>
@@ -179,7 +185,7 @@
      <x>0</x>
      <y>0</y>
      <width>609</width>
-     <height>25</height>
+     <height>23</height>
     </rect>
    </property>
   </widget>
-- 
GitLab