make sure we show the start of our sequence name
authorDiane Trout <diane@caltech.edu>
Thu, 14 Sep 2006 20:10:34 +0000 (20:10 +0000)
committerDiane Trout <diane@caltech.edu>
Thu, 14 Sep 2006 20:10:34 +0000 (20:10 +0000)
fixes ticket:128

alg/sequence.cpp
qui/seqbrowser/SequenceDescription.cpp

index 64bbfbd3cdeab37d179cb1754601d29ebb5e37f2..0b7fb0e7511a3d9a4cb99e5deb2f0a71a3a90da7 100644 (file)
@@ -654,9 +654,9 @@ Sequence::size_type Sequence::length() const
 {
   return size();
 }
+
 void
 Sequence::save(fs::fstream &save_file)
-               //std::string save_file_path)
 {
   //fstream save_file;
   std::list<annot>::iterator annots_i;
index 80dfa8f8a93ad683fc557811f100c1b598c3774f..8bf36e6c6911cb47f944b7fdfd009beddf551312 100644 (file)
@@ -67,6 +67,7 @@ void SequenceDescription::setName(const QString& name_)
     // no need to setText again if its because of user editing
   if (name_ != name_label.text()) {
     name_label.setText(name_);
+    name_label.setCursorPosition(0);
   }
 }