Skip to content

Commit

Permalink
Fix install for scripts, esp. energy calculators
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Dec 5, 2024
1 parent 6694257 commit 9c8be67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions avogadro/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ bool MainWindow::addScript(const QString& filePath)
QString typePath;

int index = types.indexOf(item);

// don't translate these
switch (index) {
case 0: // commands
Expand All @@ -859,10 +860,10 @@ bool MainWindow::addScript(const QString& filePath)
case 2:
typePath = "formatScripts";
break;
case 4:
case 3:
typePath = "charges";
break;
case 5:
case 4:
typePath = "energy";
break;
default:
Expand Down

0 comments on commit 9c8be67

Please sign in to comment.