editor: do not ask for saving on new document

A new, unmodified document does not contain any interresting data,
let's not bother the user about saving before quitting in that
case.

fixup some code style while at it.
This commit is contained in:
Erik Faye-Lund 2011-07-16 14:49:59 +02:00
parent b85a3bddcb
commit 96cc9e82a4

View File

@ -16,10 +16,10 @@ extern "C" {
#include "clientsocket.h"
class SyncDocument : public sync_data
{
class SyncDocument : public sync_data {
public:
SyncDocument() : rows(128), savePointDelta(0), savePointUnreachable(true)
SyncDocument() :
rows(128), savePointDelta(0), savePointUnreachable(false)
{
this->tracks = NULL;
this->num_tracks = 0;