mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	In maintab disable correct label when dive trip selected
Until now accidentally the dateLabel was disabled and the timeLabel was enabled. Changed this the other (correct) way round. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
		
							parent
							
								
									adb0adb1d2
								
							
						
					
					
						commit
						010f5f2abc
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -493,7 +493,7 @@ void MainTab::updateDiveInfo(bool clear)
 | 
				
			||||||
			ui.waterTempLabel->setVisible(false);
 | 
								ui.waterTempLabel->setVisible(false);
 | 
				
			||||||
			ui.watertemp->setVisible(false);
 | 
								ui.watertemp->setVisible(false);
 | 
				
			||||||
			ui.dateEdit->setReadOnly(true);
 | 
								ui.dateEdit->setReadOnly(true);
 | 
				
			||||||
			ui.label->setVisible(false);
 | 
								ui.timeLabel->setVisible(false);
 | 
				
			||||||
			ui.timeEdit->setVisible(false);
 | 
								ui.timeEdit->setVisible(false);
 | 
				
			||||||
			ui.diveTripLocation->show();
 | 
								ui.diveTripLocation->show();
 | 
				
			||||||
			ui.location->hide();
 | 
								ui.location->hide();
 | 
				
			||||||
| 
						 | 
					@ -538,7 +538,7 @@ void MainTab::updateDiveInfo(bool clear)
 | 
				
			||||||
			ui.waterTempLabel->setVisible(true);
 | 
								ui.waterTempLabel->setVisible(true);
 | 
				
			||||||
			ui.watertemp->setVisible(true);
 | 
								ui.watertemp->setVisible(true);
 | 
				
			||||||
			ui.dateEdit->setReadOnly(false);
 | 
								ui.dateEdit->setReadOnly(false);
 | 
				
			||||||
			ui.label->setVisible(true);
 | 
								ui.timeLabel->setVisible(true);
 | 
				
			||||||
			ui.timeEdit->setVisible(true);
 | 
								ui.timeEdit->setVisible(true);
 | 
				
			||||||
			/* and fill them from the dive */
 | 
								/* and fill them from the dive */
 | 
				
			||||||
			ui.rating->setCurrentStars(displayed_dive.rating);
 | 
								ui.rating->setCurrentStars(displayed_dive.rating);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -82,7 +82,7 @@
 | 
				
			||||||
              </widget>
 | 
					              </widget>
 | 
				
			||||||
             </item>
 | 
					             </item>
 | 
				
			||||||
             <item row="0" column="0">
 | 
					             <item row="0" column="0">
 | 
				
			||||||
              <widget class="QLabel" name="label">
 | 
					              <widget class="QLabel" name="dateLabel">
 | 
				
			||||||
               <property name="text">
 | 
					               <property name="text">
 | 
				
			||||||
                <string>Date</string>
 | 
					                <string>Date</string>
 | 
				
			||||||
               </property>
 | 
					               </property>
 | 
				
			||||||
| 
						 | 
					@ -92,7 +92,7 @@
 | 
				
			||||||
              </widget>
 | 
					              </widget>
 | 
				
			||||||
             </item>
 | 
					             </item>
 | 
				
			||||||
             <item row="0" column="1">
 | 
					             <item row="0" column="1">
 | 
				
			||||||
              <widget class="QLabel" name="label_6">
 | 
					              <widget class="QLabel" name="timeLabel">
 | 
				
			||||||
               <property name="text">
 | 
					               <property name="text">
 | 
				
			||||||
                <string>Time</string>
 | 
					                <string>Time</string>
 | 
				
			||||||
               </property>
 | 
					               </property>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue