Skip to content

Commit

Permalink
Fix latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttyartist committed Feb 25, 2016
1 parent 78d2c5c commit 0f5d126
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ MainWindow::MainWindow (QWidget *parent) :
SelectFirstNote();

CreateNewNoteIfEmpty();

if(allNotesList.empty())
{
Create_new_note();
}
}

void MainWindow::paintEvent(QPaintEvent *e)
Expand Down Expand Up @@ -746,9 +741,9 @@ void MainWindow::SelectFirstNote ()
*/
void MainWindow::CreateNewNoteIfEmpty ()
{
if(!visibleNotesList.empty())
if(allNotesList.empty())
{
visibleNotesList.back()->button->pressed();
Create_new_note();
}
}

Expand Down

0 comments on commit 0f5d126

Please sign in to comment.