Skip to content

Commit eadd9b0

Browse files
committed
[feature #124] The currentFrame is not necessary the selected frame
1 parent f371ee8 commit eadd9b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unitex/src/fr/umlv/unitex/frames/GraphPathFrame.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ private void makeDicCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//G
507507
}//GEN-LAST:event_inputGraphNameActionPerformed
508508

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

0 commit comments

Comments
 (0)