-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add undo/redo support #59
Conversation
{ | ||
emit progress(0, 1, tr("Exporting boot configuration...")); | ||
QFile export_file(file_name); | ||
if(!export_file.open(QIODevice::WriteOnly)) |
Check notice
Code scanning / Flawfinder (reported by Codacy)
Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362).
{ | ||
emit progress(0, 1, tr("Exporting boot configuration...")); | ||
QFile dump_file(file_name); | ||
if(!dump_file.open(QIODevice::WriteOnly)) |
Check notice
Code scanning / Flawfinder (reported by Codacy)
Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362).
{ | ||
emit progress(0, 1, tr("Importing boot configuration...")); | ||
QFile import_file(file_name); | ||
if(!import_file.open(QIODevice::ReadOnly)) |
Check notice
Code scanning / Flawfinder (reported by Codacy)
Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cppcheck (reported by Codacy) found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
} | ||
|
||
DisableUndoRedo(const DisableUndoRedo &) = delete; | ||
DisableUndoRedo &operator=(const DisableUndoRedo &) = delete; |
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 802 with no text in the supplied rule-texts-file
{ | ||
} | ||
|
||
DisableUndoRedo(const DisableUndoRedo &) = delete; |
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 806 with no text in the supplied rule-texts-file
} | ||
|
||
DisableUndoRedo(const DisableUndoRedo &) = delete; | ||
DisableUndoRedo &operator=(const DisableUndoRedo &) = delete; |
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 806 with no text in the supplied rule-texts-file
{ | ||
} | ||
|
||
DisableUndoRedo(const DisableUndoRedo &) = delete; |
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 802 with no text in the supplied rule-texts-file
Q_OBJECT | ||
|
||
public: | ||
explicit DisableUndoRedo(QObject *parent = nullptr) |
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 806 with no text in the supplied rule-texts-file
You have successfully added a new CodeQL configuration |
You have successfully added a new CodeQL configuration |
You have successfully added a new CodeQL configuration |
You have successfully added a new CodeQL configuration |
You have successfully added a new CodeQL configuration |
You have successfully added a new CodeQL configuration |
You have successfully added a new CodeQL configuration |
You have successfully added a new CodeQL configuration |
You have successfully added a new CodeQL configuration |
protected: | ||
bool eventFilter(QObject *obj, QEvent *ev) override | ||
{ | ||
if(ev->type() == QEvent::ShortcutOverride) |
Check warning
Code scanning / PREfast
The enum type 'QEvent::Type' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
You have successfully added a new CodeQL configuration |
No description provided.