Issue #578 Always on top fixed on search results, using dialog where possible

This commit is contained in:
Jindra Petřík
2014-06-07 07:43:02 +02:00
parent b2feb476bb
commit 6c1e7ccad5
27 changed files with 79 additions and 17 deletions

View File

@@ -272,6 +272,12 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
}
}
public MainFrame getMainFrame() {
return mainFrame;
}
static {
try {
File.createTempFile("temp", ".swf").delete(); //First call to this is slow, so make it first
@@ -1388,7 +1394,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
public void searchAs() {
if (searchDialog == null) {
searchDialog = new SearchDialog();
searchDialog = new SearchDialog(getMainFrame().getWindow());
}
searchDialog.setVisible(true);
if (searchDialog.result) {