Skip to content

Commit

Permalink
[feature #124] The currentFrame is not necessary the selected frame
Browse files Browse the repository at this point in the history
  • Loading branch information
selgueti committed May 25, 2022
1 parent f371ee8 commit eadd9b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unitex/src/fr/umlv/unitex/frames/GraphPathFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ private void makeDicCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//G
}//GEN-LAST:event_inputGraphNameActionPerformed

private void runButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_runButtonActionPerformed
if (currentFrame == null || currentFrame.getGraph() == null) {
if (inputGraphName.getSelectedItem() == null ||
((GraphFrame) inputGraphName.getSelectedItem()).getGraph() == null) {
JOptionPane.showMessageDialog(UnitexFrame.mainFrame,
"Cannot explore graph paths for graph with no name, save the graph first", "Error",
JOptionPane.ERROR_MESSAGE);
Expand Down

0 comments on commit eadd9b0

Please sign in to comment.