Skip to content

Commit

Permalink
COMMIT warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Preetam-Das26 committed Sep 28, 2024
1 parent f79156d commit 74d140d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mslib/msui/autoplot_dockwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,16 @@ def combo_box_input(self, combo):
comboBoxName = combo.objectName()
currentText = combo.currentText()
if comboBoxName == "timeIntervalComboBox":
if currentText == "":
return
if self.stimeComboBox.count() == 0:
QMessageBox.information(
self,
"WARNING",
"Please select a layer first."
)
self.timeIntervalComboBox.setCurrentIndex(0)
return
datetime1_str = self.stimeComboBox.itemText(1)
datetime2_str = self.stimeComboBox.itemText(2)

Expand Down

0 comments on commit 74d140d

Please sign in to comment.