mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
remove duplicate setDirty
This commit is contained in:
@@ -110,7 +110,7 @@ void ImportCsvDialog::accept()
|
||||
// Everything ok, release the savepoint
|
||||
if(!pdb->executeSQL("RELEASE SAVEPOINT CSVIMPORT;"))
|
||||
goto rollback;
|
||||
pdb->setDirtyDirect(true);
|
||||
pdb->setDirty(true);
|
||||
QApplication::restoreOverrideCursor(); // restore original cursor
|
||||
QDialog::accept();
|
||||
return;
|
||||
|
||||
@@ -24,13 +24,6 @@ void DBBrowserDB::setDirty(bool dirtyval)
|
||||
mainWindow->dbState(dirtyval);
|
||||
}
|
||||
|
||||
void DBBrowserDB::setDirtyDirect(bool dirtyval)
|
||||
{
|
||||
dirty = dirtyval;
|
||||
if(mainWindow)
|
||||
mainWindow->dbState(dirtyval);
|
||||
}
|
||||
|
||||
bool DBBrowserDB::getDirty()
|
||||
{
|
||||
return dirty;
|
||||
|
||||
@@ -115,7 +115,6 @@ public:
|
||||
int getRecordCount();
|
||||
bool isOpen();
|
||||
void setDirty(bool dirtyval);
|
||||
void setDirtyDirect(bool dirtyval);
|
||||
bool getDirty();
|
||||
void logSQL(QString statement, int msgtype);
|
||||
void setEncoding( int encoding );
|
||||
|
||||
Reference in New Issue
Block a user