OSDN Git Service

Correct problem when selecting a stack and adding a new note.
authorRandy Baumgarte <randy@fbn.cx>
Fri, 29 Jul 2011 13:14:35 +0000 (09:14 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Fri, 29 Jul 2011 13:14:35 +0000 (09:14 -0400)
src/cx/fbn/nevernote/NeverNote.java

index 513612b..0f5a1b4 100644 (file)
@@ -4643,7 +4643,7 @@ public class NeverNote extends QMainWindow{
        String notebook = null;
        listManager.getNotebookIndex().get(0).getGuid();
        List<QTreeWidgetItem> selectedNotebook = notebookTree.selectedItems();
-       if (selectedNotebook.size() > 0 && !selectedNotebook.get(0).text(0).equalsIgnoreCase("All Notebooks")) {
+       if (selectedNotebook.size() > 0 && !selectedNotebook.get(0).text(0).equalsIgnoreCase("All Notebooks") && !selectedNotebook.get(0).text(2).equalsIgnoreCase("STACK")) {
                QTreeWidgetItem currentSelectedNotebook = selectedNotebook.get(0);
                notebook = currentSelectedNotebook.text(2);
        } else {