- Perform the first workspace scan after the main window is visible

- Aborted scans now leave the workspace state empty to prevent incorrect operation
- Minor refactoring

FossilOrigin-Name: be20b59a51389fdf0527c039742581032b52e3a5
This commit is contained in:
kostas
2014-07-29 14:09:36 +00:00
parent 76f6550ae5
commit f33f1d4a82
5 changed files with 40 additions and 52 deletions

View File

@ -120,6 +120,7 @@ public:
explicit MainWindow(Settings &_settings, QWidget *parent = 0, QString *workspacePath = 0);
~MainWindow();
bool diffFile(QString repoFile);
void fullRefresh();
private:
typedef QSet<QString> stringset_t;
@ -192,7 +193,6 @@ private slots:
void onTreeViewSelectionChanged(const class QItemSelection &selected, const class QItemSelection &deselected);
void onFileViewDragOut();
void onAbort();
void onShow();
// Designer slots
void on_actionRefresh_triggered();
@ -251,8 +251,7 @@ private:
class QAction *recentWorkspaceActs[MAX_RECENT];
class QProgressBar *progressBar;
class QShortcut *abortShortcut;
bool abortCurrentAction;
bool refreshOnShow;
bool abortOperation;
Settings &settings;
QString projectName;